SA-MP Forums Archive
HotDog Seller Script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HotDog Seller Script (/showthread.php?tid=212316)



HotDog Seller Script - SanAndreasVille - 16.01.2011

Hello i have a problem

Quote:

if(!strcmp(strget(cmdtext,0),"/sellhotdog"))
{
if(GetPlayerVehicleID(playerid) == 58
{
{
SendClientMessage(playerid,COLOR_GREY,"Command: /sellhotdog [ID] [Ј]");
if(!strlen(strget(cmdtext,1)))
return
format(string5, sizeof(string5), "*%s sell you a hotdog%d an.",hotdoger,preis);
SendClientMessage(playerid,COLOR_GREY,"Command /buyhotdog too buy a hotdog.");
SendClientMessage(givehot, COLOR_LIGHTBLUE, string5);
}
}
return 1;
}

if(!strcmp(strget(cmdtext,0),"/buyhotdog"))
{
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,COLOR_GREY,"Command: /buyhotdog");
GivePlayerMoney(givehot, -preis);
format(string5, sizeof(string5), "*have buy a hotdog for %d ",preis);
SendClientMessage(givehot, COLOR_LIGHTBLUE, string5);
SetPlayerHealth(playerid,100.0);
}
return 1;
}
return 0;
}

The hotdog seller musst near the buyer 20meters, and one hotdog give the player +25Health, and i want delete the vehicle idont want sit in a vehicle to sell hotdogs can everyone delete this?
help me with this script


Re: HotDog Seller Script - Anthonyx3' - 17.01.2011

remove the
pawn Код:
if(GetPlayerVehicleID(playerid) == 58
{