19.12.2010, 21:26
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
GetPlayerMoney(playerid);
if(GetPlayerMoney(playerid)>=100)
{
if(pickupid == PickupMp5Entrar)
GivePlayerWeapon(playerid, 29, 500);
GivePlayerMoney(playerid, -300);
}
if(GetPlayerMoney(playerid)<=299) // Ele nгo tem dinheiro, sendo que й menor ou igual a 99
{
SendClientMessage(playerid, 0x008080FF,"Nгo tem dinheiro suficiente");
}