sethours order
#1

It gives you someone please order / sethours
Have the form like this:
PHP код:
CMD:eject(playerid,params[])
{
    if(
AccInfo[playerid][Level] >= 3)
    {
        new 
player1string[128], Float:xFloat:yFloat:z;
        
//----------------------------------------------------------------------
        
if(sscanf(params"u"player1)) return
        
SendClientMessage(playeridLIGHTBLUE2"Usage: /eject [PlayerID]") &&
        
SendClientMessage(playeridorange"Function: Will Ejected from vehicle a specified player");
        
//----------------------------------------------------------------------
        
if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return
        
SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        
//----------------------------------------------------------------------
        
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            if(
IsPlayerInAnyVehicle(player1))
            {
                   
SendCommandToAdmins(playerid,"Eject");
                if(
player1 != playerid)
                {
                    
format(string,sizeof(string),"|- Administrator \"%s\" has Ejected you from your Vehicle -|"pName(playerid));
                    
SendClientMessage(player1,blue,string);
                }
                
format(string,sizeof(string)," |- You have ejected \"%s\" from their Vehicle -|"pName(player1));
                
SendClientMessage(playerid,BlueMsg,string);
                   
GetPlayerPos(player1,x,y,z);
                return 
SetPlayerPos(player1,x,y,z+3);
            }
            else return 
SendClientMessage(playerid,red,"ERROR: Player is not in a vehicle");
        }
        else return 
ErrorMessages(playerid2);
    }
    else return 
ErrorMessages(playerid1);

Reply


Messages In This Thread
sethours order - by IceKold - 04.08.2013, 09:07
Re: sethours order - by RajatPawar - 04.08.2013, 09:14
Re: sethours order - by IceKold - 04.08.2013, 11:14
Re: sethours order - by Jack.7331 - 04.08.2013, 11:44
Re: sethours order - by IceKold - 04.08.2013, 12:04
Re: sethours order - by Originality - 04.08.2013, 12:45

Forum Jump:


Users browsing this thread: 2 Guest(s)