Easy Question!
#1

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>?
Reply
#2

Quote:
Originally Posted by harrold
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>?
/register or /login ? post it on the servers forum lol
Reply
#3

Either kick them if they Spawn or Force Class Selection and kill em
Reply
#4

No i want he can't spawn if he don't login NO KICK
Reply
#5

Код:
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
Reply
#6

Ok thanks ^^
Oh what's a good sound id to warn the player to log in?
Reply
#7

Quote:
Originally Posted by harrold
No i want he can't spawn if he don't login NO KICK
1) Chill out
2) Sending them a message wont do jack shit, They can still spawn, I was suggesting an option to stop them from spawning if they do press shift
Reply
#8

And how you wanna do?
Reply
#9

Quote:
Originally Posted by harrold
And how you wanna do?
What, If you do what i said then in OnPlayerSpawn if they aint logged in then ForceClassSelection and kill em which means it will take them back to the Char selection screen
Reply
#10

public OnPlayerRequestSpawn( playerid )
{
if((GetPlayerSkin(playerid)==WHATEVERSKIN) && !PlayerAdmin[playerid])
{
ForcePlayerClassSelection(playerid);
SpawnPlayer(playerid);
}
return 1;
}

smells like it would work to me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)