SA-MP Forums Archive
Onplayerspawn Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Onplayerspawn Problem (/showthread.php?tid=96402)



Onplayerspawn Problem - Erkan - 07.09.2009

Код:
if(PlayerData[playerid][Prison] == 1)
  {
  	new playa;
	playa = strvalEx(tmp);
  GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  GameTextForPlayer(playa, "~r~Back to Admin Jail", 3000, 3);
  SendClientMessage(playerid, RED, "AdminMessage: Remember you never can escape from this Admin Jail, wait till your time ends.");
  format(string,sizeof(string),"AdminMessage: %s has been jailed automatically, he has not served his time.",giveplayer);
	SendClientMessageToAll(RED,string);
	SetPlayerInterior(playerid,6);
	SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
	}
Hi this code is saved if u jail you are prison 1 and if u /q and come back it saves it but if I spawn this command wont work its on onplayerspawn it does not show even the messages any ideas ?


Re: Onplayerspawn Problem - Erkan - 07.09.2009

any one?



Re: Onplayerspawn Problem - x-cutter - 08.09.2009

We would need to see the whole spawn command... cause it's probably caused by something outside this piece of code


Re: Onplayerspawn Problem - Erkan - 08.09.2009

It works in my gamemode, but in the streetz gamemode it does not work something fucks up this command and out Tutorial.


Re: Onplayerspawn Problem - Erkan - 09.09.2009

Does no one know how to fix this like making with x,y,z please?