27.02.2009, 17:11
I have a problem where you use the command /flysf to go to San Fiero. It takes $2500 from your money but i need some script so if you dont have enough money you cannot go there.
Currently:
I have tried:
Currently:
Код:
if (strcmp("/flysf", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -96.8143,-1197.3097,2.5853);
GameTextForPlayer(playerid, "Arrived At San Fiero! (-$2500)",5000,5); \
GivePlayerMoney(playerid, -2500);
return 1;
}
Код:
if (strcmp("/flysf", cmdtext, true, 10) == 0)
{
if pocketmoney <=0 then
GameTextForPlayer(playerid, "Not Enough Money!",5000,5); \
else
SetPlayerPos(playerid, -96.8143,-1197.3097,2.5853);
GameTextForPlayer(playerid, "Arrived At San Fiero! (-$2500)",5000,5); \
GivePlayerMoney(playerid, -2500);
endif
return 1;
}

