23.10.2014, 12:36
What could be the problem?
Command processor DC_CMD, probyval ZCMD, MCCMD, nothing helps.
Admin commands do not work only on the ID 0 .
UPDATE:
And now start gradually spread to other IDs .
Example command :
Text error:
Command processor DC_CMD, probyval ZCMD, MCCMD, nothing helps.
Admin commands do not work only on the ID 0 .
UPDATE:
And now start gradually spread to other IDs .
Example command :
PHP код:
CMD:gethere(playerid, params[])
{
if(!User[playerid][Login]) return true;
if(GetPVarInt(playerid,"Admins") < 3 || !GetPVarInt(playerid,"AdminLogin")) return true;
if(sscanf(params, "u",params[0])) return SendClientMessage(playerid, COLOR_WHITE,"Введите: /gethere [id]");
new Float:p[3];
if(GetPlayerState(params[0]) != 1 && GetPlayerState(params[0]) != 2 && GetPlayerState(params[0]) != 3) return SendClientMessage(playerid, COLOR_GREY, "Игрок не вступил в игру!");
if(GetPVarInt(params[0], "AFK_Time") > 1) return SendClientMessage(playerid, COLOR_GREY, "Игрок находится в AFK режиме!");
GetPlayerPos(playerid, p[0], p[1], p[2]);
if(GetPlayerState(params[0]) == 2) SetVehiclePos(GetPlayerVehicleID(params[0]), p[0], p[1]+4, p[2]);
else SetPlayerPos(params[0], p[0], p[1]+2, p[2]);
SetPlayerInterior(params[0],GetPlayerInterior(playerid));
SetPlayerVirtualWorld(params[0],GetPlayerVirtualWorld(playerid));
SendClientMessage(params[0], COLOR_WHITE, "Вас телепортировал к себе Администратор Montana State");
return true;
}
Text error:
PHP код:
Игрок не вступил в игру!