Help Zcmd
#1

Hello, what happens is that through my commands CMD: but now remaining in OnPlayerCommandText not work

because it happens?

pawn Код:
//In OnPlayerCommandText(playerid, cmdtext[])
   

    if(IsPlayerFlooding(playerid))
    {
    new Float:X,Float:Y,Float:Z;
    PlayerPlaySound(playerid, 1009, X, Y, Z);
    SendClientMessage(playerid, 0xFF0000FF, "*** {80FF80} No Flood");
    return 1;
    }
    iPlayerChatTime[playerid] = GetTickCount();
    if(SpawnCMDS[playerid]==1)
    {
    static Float:X,Float:Y, Float:Z;GetPlayerPos(playerid,X, Y,Z);SetPlayerPos(playerid,X,Y,Z+1);
    PlayerPlaySound(playerid, 1009, X, Y, Z);
    SetPlayerHealth(playerid,100);
    SpawnPlayer(playerid);
    GameTextForPlayer(playerid, "~g~came out of the dm", 3000,3);
    return 1;
    }
    if (BloqueoCMDS[playerid]==1)//Lock command
    {
    static Float:X,Float:Y,Float:Z;GetPlayerPos(playerid,X, Y,Z);SetPlayerPos(playerid,X,Y,Z);
    PlayerPlaySound(playerid,1095,0.0,0.0,0.0);
    GameTextForPlayer(playerid, "~r~You can not use commands", 3000,3);
    return 1;
    }

//Commands in CMD
CMD:dm(playerid, params[])
{
BloqueoCMDS[playerid]=1;
return 1;}
//protection does not work command
Reply


Messages In This Thread
Help Zcmd - by INKISICION - 27.01.2015, 05:22
Re: Help Zcmd - by ATGOggy - 27.01.2015, 06:11
Re: Help Zcmd - by INKISICION - 27.01.2015, 06:23
Re: Help Zcmd - by ATGOggy - 27.01.2015, 06:28
Re: Help Zcmd - by INKISICION - 27.01.2015, 06:33
Re: Help Zcmd - by Excel™ - 27.01.2015, 07:41
Re: Help Zcmd - by Razturach - 27.01.2015, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)