Help all cmds buged
#1

Help all my cmds in my server are buged help here how i use sscanf
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
  
// 2 LAST CMDS
  
if (strcmp("/restart"cmdtexttrue10) == 0)
    {
        if(
Player[playerid][pAdmin] >= 1)
        {
            
SendClientMessageToAll(COLOR_YELLOW,"[SERVER]:Server is restarting be patient do not quit please");
            
GameTextForAll("~G~Server Restarting"90001);
            
SendRconCommand("gmx");
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"[SERVER]:You are not allowed to use this command");
        }
        return 
1;
    }
    if (
strcmp("/desertairport"cmdtexttrue10) == 0)
    {
        if(
Player[playerid][pAdmin] >= 1)
        {
             
SetPlayerPos(playerid,392.2665,2535.1682,16.5429);
             
SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You teleported to Desert Airport");
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED "[SERVER]:You are not allowed to use this command");
        }
        return 
1;
    }
    return 
0;
}
// Is problem at end ??? Also i have no errors
//Ingame when i try to use a cmd it says unknown cmd. 
Reply


Messages In This Thread
Help all cmds buged - by Gogeta101 - 28.08.2014, 19:11
Re: Help all cmds buged - by Gogeta101 - 28.08.2014, 19:26
Re: Help all cmds buged - by ThePhenix - 28.08.2014, 19:28
Re: Help all cmds buged - by Gogeta101 - 28.08.2014, 19:29
Re: Help all cmds buged - by jakejohnsonusa - 28.08.2014, 19:31
Re: Help all cmds buged - by ThePhenix - 28.08.2014, 19:32
Re: Help all cmds buged - by Gogeta101 - 28.08.2014, 19:33
Re: Help all cmds buged - by Gogeta101 - 28.08.2014, 20:34
Re: Help all cmds buged - by AlBullet - 29.08.2014, 00:30

Forum Jump:


Users browsing this thread: 2 Guest(s)