Buy license
#8

Quote:
Originally Posted by Lastman
Код:
if(strcmp(cmd, "/buyflyinglicense", true) == 0)
{
if(PlayerInfo[playerid][pFlyLic] == 0)
{
if(GetPlayerCash(playerid) >= 10000)
{
GivePlayerCash(playerid,-10000);
SendClientMessage(playerid,COLOR_LIGHTGREEN,"You have just bought a flying license..");
PlayerInfo[playerid][pFlyLic] = 1;
OnPlayerDataSave(playerid);

}

else
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"You don't have enough money!");
}

}

else
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"You already have a license!");
}

return 1;
}
Sorry but i havent added cityhall position, do it yourself please..
OnPlayerDataSave(playerid);
whered u get that from?
Reply


Messages In This Thread
Buy license - by Tony_Cobra - 09.04.2009, 22:27
Re: Buy license - by Weirdosport - 09.04.2009, 22:30
Re: Buy license - by Tony_Cobra - 09.04.2009, 22:44
Re: Buy license - by miokie - 09.04.2009, 23:36
Re: Buy license - by Weirdosport - 10.04.2009, 00:01
Re: Buy license - by Frank_Tesla - 10.04.2009, 03:47
Re: Buy license - by Lastman - 10.04.2009, 05:52
Re: Buy license - by tom_jonez - 10.04.2009, 06:32
Re: Buy license - by Frank_Tesla - 10.04.2009, 06:52
Re: Buy license - by Tony_Cobra - 10.04.2009, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)