27.01.2015, 05:22
Hello, what happens is that through my commands CMD: but now remaining in OnPlayerCommandText not work
because it happens?
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