12.07.2009, 16:38
Quote:
Not sure about the pLicense, change it to what it supposes to be. |
so if anyone needs this the code is
pawn Код:
if(!strcmp(cmd,"/getlicense",true))
{
if(PlayerInfo[playerid][pCarLic]) return SendClientMessage(playerid, COLOR_RED, "You already have a license.");
if(GetPlayerMoney(playerid)<5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money, a license costs 5,000$.");
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pCarLic]=1;
SendClientMessage(playerid, COLOR_GREEN, "You've bought a license for 5,000$.");
return 1;
}