13.01.2011, 02:19
Quote:
James like this?
Код:
if (strcmp("/buygun deagle", cmdtext, true)==0){ if( GetPlayerMoney( playerid ) >= 1000 ) { SendClientMessage(playerid, COLOR_WHITE, "You have bought a Deagle for 1000 dollars!"); GivePlayerWeapon(playerid, 24, 40); GivePlayerMoney(playerid, -1000); } else { SendClientMessage(playerid, COLOR_YELLOW, "You dont have enough money!"); } return 1; } |
Код:
if (strcmp("/buygun deagle", cmdtext, true)==0) { if( GetPlayerMoney( playerid ) >= 1000 ) { SendClientMessage(playerid, COLOR_WHITE, "You have bought a Deagle for 1000 dollars!"); GivePlayerWeapon(playerid, 24, 40); GivePlayerMoney(playerid, -1000); } else { SendClientMessage(playerid, COLOR_YELLOW, "You dont have enough money!"); } return 1; }