God Help
#1

HI Guys,
Can Anybody help me, I am having problem with putting the tag "GodMode Enabled" on top of the player who have godmode enabled. Can anybody help me?

Regards,
Compiler
Reply
#2

PHP код:
#include <zcmd>
new Text3D:Label[MAX_PLAYERS 1];
CMD:godmode(playeridparams[])
{
    
Label[playerid] = Create3DTextLabel("GodMod Enabled"0xFFFFFFFF00, -3510001);
    
Attach3DTextLabelToPlayer(Label[playerid], playerid0.00.00.4);
    
SendClientMessage(playerid, -1"GodMod Enabled");
    return 
1;

Reply
#3

And I also want a message to show to the player who tries to shoot a Player which has god mode enabled.

Picture:
Reply
#4

OnPlayerGiveDamage use this, show GameText to "issuerid" if playerid has god mode enabled.
Reply
#5

Can you give me the Script?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)