12.07.2009, 15:39
You should've read forum rules.
Post this in the GF topic.
Though I will help here disposable even though it's regrading to GF.
Not sure about the pLicense, change it to what it supposes to be.
Post this in the GF topic.
Though I will help here disposable even though it's regrading to GF.
pawn Код:
if(!strcmp(cmd,"/getlicense",true))
{
if(PlayerInfo[playerid][pLicense]) return SendClientMessage(playerid,color,"You already have a license.");
if(GetPlayerMoney(playerid)<5000) return SendClientMessage(playerid,color,"You don't have enough money, a license costs 5,000$.");
GiveMoney(playerid,-5000);
PlayerInfo[playerid][pLicense]=1;
SendClientMessage(playerid,color,"You've bought a license for 5,000$.");
return 1;
}