Spawn disable
#1

Can i make cannot spawn if he is not loged in? i use logged[MAX_PLAYERS];
Reply
#2

Код:
public OnPlayerRequestSpawn(playerid)
{
	if(!logged[playerid])
		return 0;
	return 1;
}
Reply
#3

no i cannot spawn even i am loged in
Reply
#4

Then you don`t assigned logged[playerid] properly when you`ve logged in.
Reply
#5

ok i made it this is the correct form


public OnPlayerRequestSpawn(playerid)
{
if(!logged[playerid])
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to login first");
return 0;
}
return 1;
}
Reply
#6

That`s formwise as correct as the code in my first post.
Reply
#7

but first didn't work:\ anyway thank you guys for helping
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)