All pastes #162490 Raw Edit

mabako

public text v1 · immutable
·published 2006-09-06 15:59 UTC
rendered paste body
public OnPlayerRequestSpawn(playerid) {



 if(player_authed[playerid] == -1) {
  SendClientMessage(playerid,COLOR_GREY,"You need to login into your accont!");
  return 0;
 } else if(player_authed[playerid] == -2) {
  SendClientMessage(playerid,COLOR_GREY,"You need to register your nickname at the server!");
  return 0;
 }



	new Float:spawndata[4];
	GetPlayerRandomSpawn(playerid,spawndata[0],spawndata[1],spawndata[2],spawndata[3]);

	SetSpawnInfo(playerid,0,skins[player_skin[playerid][0]],spawndata[0],spawndata[1],spawndata[2],spawndata[3],0,0,0,0,0,0);

 return 1;
}