SA-MP Forums Archive
sethours order - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sethours order (/showthread.php?tid=456027)



sethours order - IceKold - 04.08.2013

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);




Re: sethours order - RajatPawar - 04.08.2013

Quote:
Originally Posted by ******
Scripting Help
Provide Details - If you do not get help, please re-evaluate the explanation of the issue you provided, it may not be providing enough information for people to help you.
No Useless Replies - If you are unsure or don't know how to proceed with solving an issue, then do not respond to the thread, it will be considered spam.
Provide Code - People are not psychic, if there's an issue in your code they need to see that code. If you are worried about people stealing it, don't be - its nothing special! If you are unwilling to provide code and want help in private, post here and be prepared to wait a long time and pay a lot of money.
Do Not Post Untested Code - If you are replying to a problem and you haven't confirmed that your code will work, you are likely to make the problem worse, not better.
Script Requests - If you are requesting a script be made for you, rather than help with your coding, post in the Looking for scripters/helpers? Post here! Thread.
....


Re: sethours order - IceKold - 04.08.2013

Help Me!!!


Re: sethours order - Jack.7331 - 04.08.2013

We don't know what you have for the playing hours, so in my script I'll go ahead and assume it's AccInfo[playerid][PlayingHours].

http://pastebin.com/VjbLrSe8


Re: sethours order - IceKold - 04.08.2013

I solved can give locked!


Re: sethours order - Originality - 04.08.2013

You haven't defined hours in the command.