Am rezolvat problema, va multumesc pentru ajutor. Mai am o problema cu Fly/Flymode. Nu ii dau de cap. Cere sa definesc fly si stop fly. Am incercat mai multe chestii, dar nu reusesc. Acestea sunt comenzile, am nevoie de new fly si new stopfly banuiesc.
CMD:fly(playerid, params[])
{
new playerVariables;
if(playerVariables[playerid][pAdminLevel] >= 1)
{
if(playerVariables[playerid][pWarrants] == 0)
{
if(AFK[playerid] == 0)
{
if(playerVariables[playerid][pPrisonTime] == 0)
{
if(groupVariables[playerVariables[playerid][pGroup]][gInWar] == 0)
{
StartFly(playerid);
}
else SendClientMessage(playerid, COLOR_GREY, "You can't use this command in war time.");
}
else SendClientMessage(playerid, COLOR_GREY, "You can't spectate because you are sleeping.");
}
else SendClientMessage(playerid, COLOR_GREY, "You can't spectate because you are in jail.");
}
else SendClientMessage(playerid, COLOR_GREY, "You are wanted, you can't spectante anyone.");
}
return 1;
}
CMD:stopfly(playerid, params[])
{
if(playerVariables[playerid][pAdminLevel] >= 1)
{
StopFly(playerid);
}
return 1;
}
Unde sunt pozele acelea, este scris [playerid].