07.09.2009, 14:56
Код:
GivePlayerWeapon(playerid, 30, 500); GivePlayerMoney(playerid, -10000);
what code i need?
Sorry for my english
GivePlayerWeapon(playerid, 30, 500); GivePlayerMoney(playerid, -10000);
new money = GetPlayerMoney(playerid); // new variable which contains how much $ the player has
if(money >= 10000) // If they have more than or have 10000
{
// your code
}
else // Else
{
// Do something if they dont
}