Help me
#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


Messages In This Thread
Help me - by kevi11 - 12.03.2016, 16:36
Re: Help me - by Joron - 12.03.2016, 17:05
Re: Help me - by kevi11 - 12.03.2016, 17:54
Re: Help me - by Joron - 12.03.2016, 18:02
Re: Help me - by kevi11 - 12.03.2016, 18:05

Forum Jump:


Users browsing this thread: 3 Guest(s)