26.06.2013, 23:54
Okay so, I'm making a roleplay gamemode and I want to know how to block this F4, because when they press F4 and die they will avoid the deathmode which takes money from them.
I did something like this, but it still doesn't fully spawn the player:
I did something like this, but it still doesn't fully spawn the player:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(!Logged{playerid})
{
foreach(Player, i)
{
if(TogJoin{i} == true && i != playerid)
{
SCMEx(i, COLOR_GREY, "** %s has joined the server", GetName(playerid));
}
}
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, 1972.1044,-1105.6385,70.1854, 1972.1044,-1105.6385,70.1854, 25000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid,1969.7402,-1203.4082,25.5448,1969.7402,-1203.4082,25.5448, 25000, CAMERA_MOVE);
CheckAccount(playerid);
}
else
{
SpawnPlayer(playerid);
}
return 1;
}