Help me
#1

Guys I tried all methods to create the / aduty / mduty for moderators and admin but we have not managed to create for this gm you help me?


gm= http://pastebin.com/wDPt9Xmq
Reply
#2

Didnt need to post your whole script,Heres a /duty command when admin 1+ uses it they go on godmode and get a mingun,when they type /duty again they got back there old weapons and got there health and armour back to 100

PHP код:
CMD:duty(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playeridCOLOR_RED"Only admin level 1+ can use this command.");
    if(
PlayerInfo[playerid][pAdminLevel] >= && IsOnduty{playerid} == 0)
    {
    
IsOnduty{playerid} = 1;
    
SetPlayerHealth(playerid,9999999.0);
    
SetPlayerArmour(playerid,9999999.0);
    
GivePlayerWeapon(playerid,38,999999);
     }
    else if( 
IsOnduty{playerid} == 1)
    {
        
IsOnduty{playerid} = 0;
        
ResetPlayerWeapons(playerid);
        
SetPlayerHealth(playerid100.0);
        
SetPlayerArmour(playerid100.0);
    }
    return 
1;

Reply
#3

C:\Users\Kevin11\Desktop\Napoli\gamemodes\rp.pwn(9 22) : error 017: undefined symbol "IsOnduty"
C:\Users\Kevin11\Desktop\Napoli\gamemodes\rp.pwn(9 22) : warning 215: expression has no effect
C:\Users\Kevin11\Desktop\Napoli\gamemodes\rp.pwn(9 22) : error 001: expected token: ";", but found "}"
C:\Users\Kevin11\Desktop\Napoli\gamemodes\rp.pwn(9 29) : error 010: invalid function or declaration
C:\Users\Kevin11\Desktop\Napoli\gamemodes\rp.pwn(9 36) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

PHP код:
new IsOnduty[MAX_PLAYERS]; 
At the Top of your script...
Reply
#5

ty u so much!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)