God Help
#6

PHP код:

#include <zcmd>
new Text3D:Label[MAX_PLAYERS 1];
new 
GodMod[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)

     
GodMod[playerid] = 0;
     return 
1;
}
public 
OnPlayerDisconnect(playeridreason)

     
GodMod[playerid] = 0;
     return 
1;
}
CMD:godmode(playeridparams[])
{
    
Label[playerid] = Create3DTextLabel("GodMod Enabled"0xFFFFFFFF00, -3510001);
    
Attach3DTextLabelToPlayer(Label[playerid], playerid0.00.00.4);
    
SendClientMessage(playerid, -1"GodMod Enabled");
    
GodMod[playerid] = 1;
    return 
1;
}
public 
OnPlayerGiveDamage(playeriddamagedidFloatamountweaponidbodypart)
{
        if(
GodMod[damagedid] == 1)
        {
                  
SendClientMessage(playerid0xFFFFFFFF"That player have enabled his GodMode"); //You can change your message.
        
}
        return 
1;

Reply


Messages In This Thread
God Help - by Compiler - 28.12.2015, 17:25
Re: God Help - by IceBilizard - 28.12.2015, 17:32
Re: God Help - by Compiler - 29.12.2015, 07:03
Re: God Help - by Ritzy2K - 29.12.2015, 07:08
Re: God Help - by Compiler - 29.12.2015, 08:02
Re: God Help - by IceBilizard - 30.12.2015, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)