27.02.2013, 13:34
PHP код:
if(IsPlayerInDynamicCP(playerid, ammu1))
{
HideMenu(playerid);
format(string, sizeof(string), "~n~~p~Weapons~n~~n~~y~1. ~w~9mm - ~g~$1000~n~~y~2. ~w~Desert Eagle - ~g~$2500~n~~y~3. ~w~Sawnoff - ~g~$3500~n~~y~4. ~w~Combat Shotgun - ~g~$4000~n~~y~5. ~w~Teco9 - ~g~$6000");
TextDrawSetString(ammuu1, string);
TextDrawShowForPlayer(playerid, ammu);
TextDrawShowForPlayer(playerid, ammuu1);
return 1;
}
if(IsPlayerInDynamicCP(playerid, ammu1))
{
HideMenu(playerid);
format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~6. ~w~MP5 - ~g~$8000~n~~y~7. ~w~AK47 - ~g~$95000~n~~y~8. ~w~M4 - ~g~$11000~n~~y~9. ~w~Sniper - ~g~$12500~n~~y~10. ~w~Armour - ~g~$1000");
TextDrawSetString(ammuu2, string);
TextDrawShowForPlayer(playerid, ammuu);
TextDrawShowForPlayer(playerid, ammuu2);
return 1;
}