Godmode only when admin
#5

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
PHP код:

CMD
:god(playeridparams[]) //Line 88
{
    if(!
IsPlayerAdmin(playerid))
        {
             
SendClientMessage(playerid,0xFF0000AA,"Mag jij niet!.");
        }   
        
SetPlayerHealth(playeridINFINITY);    //set the health to infinity
        
GodMode[playerid] = 1;    //set godmode to true
        
SendClientMessage(playerid0xFF0000FF"Godmode ACtivated !!");
    else if(
GodMode[playerid] == 1//god mode set .. lets unset it
    
}
        
SetPlayerHealth(playerid100.0);    //set health to 100%
        
GodMode[playerid] = 0;    //set godmode to false
        
SendClientMessage(playerid0xFF0000FF"Godmode uit");
    return 
1//Line 104

Try this !!!
Wrong!

Look at myne and you will see that you are wrong..

@Roel: No error says that he didin't include it..
Reply


Messages In This Thread
Godmode only when admin - by nickbouwhuis - 11.10.2012, 12:04
Re: Godmode only when admin - by gtakillerIV - 11.10.2012, 12:10
Re: Godmode only when admin - by M3mPHi$_S3 - 11.10.2012, 12:11
Re: Godmode only when admin - by Roel - 11.10.2012, 12:11
Re: Godmode only when admin - by gtakillerIV - 11.10.2012, 12:14
Re: Godmode only when admin - by M3mPHi$_S3 - 11.10.2012, 12:16
Re: Godmode only when admin - by xMCx - 11.10.2012, 12:16
Re: Godmode only when admin - by Roel - 11.10.2012, 12:16
Re: Godmode only when admin - by M3mPHi$_S3 - 11.10.2012, 12:24
Re: Godmode only when admin - by Roel - 11.10.2012, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)