Server Unknown command.
#1

I create a script but when I type the command, the command doesn't work...

My script:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/lancerderby", cmdtext, true, 10) == 0)
    {
          if(IsPlayerConnected(playerid) && (derby == 0) && IsPlayerAdmin(playerid)){

            derby = 1;
            SendClientMessageToAll(0xDEEE20FF, "Un admin a lancй un derby, /rejoindrederby pour le rejoindre."); }
            return 1;
     }
     
    if (strcmp("/fermerderby", cmdtext, true, 10) == 0)
    {
            if(IsPlayerConnected(playerid) && (derby == 1) && IsPlayerAdmin(playerid)) {
           
            derby = 0;
            SendClientMessageToAll(0xDEEE20FF, "Le derby est maintenant terminй."); }
            return 1;
    }
     
    if (strcmp("/rejoindrederby", cmdtext, true, 10) == 0)
    {
            if(IsPlayerConnected(playerid) && (derby == 1)) {
           
            ResetPlayerWeapons(playerid);
            SetPlayerPos(playerid,2499.3069,2981.0603,2.3494);
            SendClientMessage(playerid, 0xDEEE20FF, "Rejoins une des voiture placйes sur la piste!."); }
            return 1;
    }

    return 0;
}
Thanks for helping me and sorry for my english!
Reply


Messages In This Thread
Server Unknown command. - by HshinnOued - 30.12.2012, 19:30
Re: Server Unknown command. - by Feastahashi - 30.12.2012, 19:41
Re : Server Unknown command. - by HshinnOued - 30.12.2012, 19:47
Re: Server Unknown command. - by Feastahashi - 30.12.2012, 19:49
Re : Server Unknown command. - by HshinnOued - 30.12.2012, 19:53
Re: Server Unknown command. - by Feastahashi - 30.12.2012, 19:57
Re : Server Unknown command. - by HshinnOued - 30.12.2012, 20:21
Re: Server Unknown command. - by ViruZz - 30.12.2012, 20:25
Re: Server Unknown command. - by StuartD - 30.12.2012, 20:41
Re: Server Unknown command. - by Konstantinos - 30.12.2012, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)