problem: ja bih zelio da napravim kafanu ali znam da napravim komandu i meni al sad nzm kako da napravim npr ako igrac uzme coca colu a ona je br 1 u meniju da mu skine para i da mu helte.....znaci samo mi pomozite kako da napravim ako uzme taj i taj broj iz menija ...kako da mu oduzme pare i kako da mu doda helte...pls
dio skripte:
if(strcmp(cmd, "/balabla", true) == 0 || strcmp(cmd, "/blabalbal", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (!PlayerToPoint(30, playerid,x,y,z))//centerpoint 24-7
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u blizini prodavnice !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "| 1: cocaola $150 );
SendClientMessage(playerid, COLOR_GRAD1, "| 2: viski $100 );
SendClientMessage(playerid, COLOR_GRAD2, "| 3: voda $5 );
SendClientMessage(playerid, COLOR_GRAD3, "| 4: kafa $1 );
SendClientMessage(playerid, COLOR_GRAD3, "| 5: fanta $500 );
SendClientMessage(playerid, COLOR_GRAD4, "| 6: sprite $150 );
SendClientMessage(playerid, COLOR_GRAD4, "| 7: rakija $50 );
return 1;
}slike:/
Hvala za pomoc unaprijed!
