18.10.2009, 13:05
Hi,
I have NPC problem, he spawns but he stays in his Positions its weird, I need help, if I remove the admin script then it works, but I want it with admin script the onlplayerspawn and requestspawn here..
What's the problem?
I have NPC problem, he spawns but he stays in his Positions its weird, I need help, if I remove the admin script then it works, but I want it with admin script the onlplayerspawn and requestspawn here..
Код:
public OnPlayerRequestSpawn(playerid) { if(PlayerData[playerid][Logged] == 0) { SendClientMessage(playerid, RED, "You must log into your streetz account to spawn."); } return 1; } public OnPlayerSpawn(playerid) { if(PlayerData[playerid][Muted] == 1) { SendClientMessage(playerid, RED, "SERVER MESSAGE: You are still muted by an Administrator"); return 1; } if(PlayerData[playerid][Prison] == 1) { SpawnPlayer(playerid); GameTextForPlayer(playerid, "~r~Admin Jail", 3000, 3); SendClientMessage(playerid, RED, "SERVER MESSAGE: You used /q during admin jail. You have been re-instated inside."); SetPlayerInterior(playerid,6); SetPlayerPos(playerid,264.6288,77.5742,1001.0391); return 1; } return 0; }