07.07.2010, 02:50
Alright here my command
But the else doesnt work what can i do now? i want it if he doesnt have it he get it but if he have it then he can have it twice
Код:
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; }