19.10.2017, 12:06
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
print("Request class!");
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
forward InstantSpawn(playerid);
public InstantSpawn(playerid)
{
TogglePlayerSpectating(playerid, 0);
TogglePlayerControllable(playerid, 1);
SpawnPlayer(playerid);
}
public OnHashCheck(playerid)
{
//...... your typical password compare stuff
if(!match)
KickPlayer(playerid, "Wrong password!");
SetTimerEx("InstantSpawn", 1, 0, "i", playerid);
return 1;
}