HotDog Seller Script
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)