28.06.2013, 17:25
pawn Код:
CMD:fps(playerid,params[])
{
if(GetPVarInt(playerid,"used") == 0)
{
firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
AttachCameraToObject(playerid, firstperson[playerid]);
SetPVarInt(playerid,"used",1);
}
else if(GetPVarInt(playerid,"used") == 1)
{
SetCameraBehindPlayer(playerid);
DestroyObject(firstperson[playerid]);
SetPVarInt(playerid,"used",0);
}
return 1;
}
Then, if someone else tip /fps at the time, when i use the fps, then servers says, that "Server does not have the command" or sth like that.
Shorter, if i use /fps, the others can't use this command.
Someone knows problem?