Posts: 260
Threads: 28
Joined: Jan 2009
Reputation:
0
Hi all
How can i do this?
A player joins and select a class but he can't press shift to spawn
He must login first then he can spawn HOW>?
Posts: 1,154
Threads: 6
Joined: Aug 2008
Reputation:
0
Either kick them if they Spawn or Force Class Selection and kill em
Posts: 260
Threads: 28
Joined: Jan 2009
Reputation:
0
No i want he can't spawn if he don't login NO KICK
Posts: 2,593
Threads: 34
Joined: Dec 2007
Код:
public OnPlayerRequestSpawn( playerid )
{
if (file exist && !Logged[playerid]){
GameTextForPlayer(playerid, "~r~Log In kid, before spawn !!!",1000,3);
return 0;
}else
return 1;
}
file exist - account of player
Posts: 260
Threads: 28
Joined: Jan 2009
Reputation:
0
Ok thanks ^^
Oh what's a good sound id to warn the player to log in?
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
public OnPlayerRequestSpawn( playerid )
{
if((GetPlayerSkin(playerid)==WHATEVERSKIN) && !PlayerAdmin[playerid])
{
ForcePlayerClassSelection(playerid);
SpawnPlayer(playerid);
}
return 1;
}
smells like it would work to me