TakePlayerCash? Or
#7

Код:
if(strcmp(cmd, "/weaponspack", true) == 0) {
if(PlayerConnected(playerid))
{
if(GetPlayerMoney(playerid) >= 1000000) // Checks if the player has it.
{
GivePlayerMoney(playerid,-1000000); // Takes it away.
GivePlayerWeapon(playerid, 24, 650);
GivePlayerWeapon(playerid, 31, 650);
GivePlayerWeapon(playerid, 26, 650);
SetPlayerHealth(playerid, 100);
SetPlayerArmor(playerid, 100);
{
else
}
SendClientMessage(playerid, *COLOR*, "You do not have the right ammount of cash for these items!");
}
return 1;
}
try that
Reply


Messages In This Thread
TakePlayerCash? Or - by Quest123 - 02.09.2010, 01:21
Re: TakePlayerCash? Or - by Yamoo - 02.09.2010, 01:30
Re: TakePlayerCash? Or - by Quest123 - 02.09.2010, 01:36
Re: TakePlayerCash? Or - by DiddyBop - 02.09.2010, 01:43
Re: TakePlayerCash? Or - by Yamoo - 02.09.2010, 01:44
Re: TakePlayerCash? Or - by Quest123 - 02.09.2010, 01:47
Re: TakePlayerCash? Or - by SmugglesJr - 02.09.2010, 03:38
Re: TakePlayerCash? Or - by Cameltoe - 02.09.2010, 04:25
Re: TakePlayerCash? Or - by Matthias_ - 02.09.2010, 04:47
Re: TakePlayerCash? Or - by Cameltoe - 02.09.2010, 05:28

Forum Jump:


Users browsing this thread: 1 Guest(s)