07.07.2010, 03:25
Quote:
Alright here my command
Код:
if (strcmp("/ak47", cmdtext, true, 10) == 0) { if(GetPlayerWeapon(playerid) == 30) SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); SendClientMessage(playerid,0xB4B5B7FF,"You already have an AK-47 foul."); SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); GivePlayerWeapon(playerid, 30,1000); else SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); SendClientMessage(playerid,0xB4B5B7FF,"Here is you AK-47 now run off nub"); SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); GivePlayerWeapon(playerid, 30,1000); return 1; } |
Код:
if (strcmp("/ak47", cmdtext, true, 10) == 0) { if(GetPlayerWeapon(playerid) == 30) { SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); SendClientMessage(playerid,0xB4B5B7FF,"You already have an AK-47 fool."); SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); } else { SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); SendClientMessage(playerid,0xB4B5B7FF,"Here is you AK-47 now run off nub"); SendClientMessage(playerid,0xB4B5B7FF,"--------------------------------------------"); GivePlayerWeapon(playerid, 30,1000); return 1; } }