20.04.2010, 09:56
*FIXED
if(PlayerInfo[playerid][pAge) < 18) return SendClientMessage(playerid,COLOR_RED,"You need to be 18+ to buy a license");
new pAge[MAX_PLAYERS];
if(listitem == 2)
{
if(pAge[playerid] < 18)
{
SendClientMessage(playerid,0xFFFFFFFF,"You need to be atleast 18 years old to buy a car license.");
}
if(playermoney >= 3000)
{
PlayerInfo[playerid][pLicenseC] = 1;
GivePlayerMoney(playerid, -10000);
SendClientMessage(playerid, COLOR_YELLOW,"You have successfully bought a Car license for $10000,- dollars.");
}
else
{
SendClientMessage(playerid, COLOR_RED,"You need $3000,- dollars in cash to buy a Car license.");
}
}
Originally Posted by Adil
pawn Код:
pawn Код:
|
if(pAge[playerid] < 18) { SendClientMessage(playerid,0xFFFFFFFF,"You need to be atleast 18 years old to buy a car license."); return 1; }