HELP!! Weird but big bug - 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: HELP!! Weird but big bug (
/showthread.php?tid=96484)
HELP!! Weird but big bug -
Striker_Moe - 08.09.2009
Okay
Код:
forward aspawn(playerid);
public OnPlayerSpawn(playerid)
{
if (AccountInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid))
{
SetTimer("aspawn",2000,false);
}
else SendClientMessage(playerid, RED, "Info: Regulary spawned");
return 1;
}
Then below it:
Код:
public aspawn(playerid)
{
SetPlayerPos(playerid,-911.0206,2686.2388,42.3703,42.9066);
SendClientMessage(playerid, RED, "Info: Spawned as admin");
}
But holy hell, everytime ID 0 gets TPed to the admin HQ D: Why?
Re: HELP!! Weird but big bug -
Correlli - 08.09.2009
Change:
pawn Код:
SetTimer("aspawn",2000,false);
to:
pawn Код:
SetTimerEx("aspawn",2000,false,"i",playerid);
Re: HELP!! Weird but big bug -
Striker_Moe - 08.09.2009
Good, now it works, but you still dont get setted to the position Iґve written. Why?
Re: HELP!! Weird but big bug -
Correlli - 08.09.2009
Quote:
Originally Posted by Mo3
Good, now it works, but you still dont get setted to the position Iґve written. Why?
|
You said it's working but now you say it's not setting you to the position? Mean's it's not working..
Are you admin when you're spawning?
Re: HELP!! Weird but big bug -
Striker_Moe - 08.09.2009
The timer only gets activated when spawning as admin.. so.. yeah.
I mean, you get the message, but dont get setted to the pos.
Re: HELP!! Weird but big bug -
Clavius - 08.09.2009
Quote:
SetPlayerPos(playerid, -911.0206, 2686.2388, 42.3703, 42.9066)
SetPlayerPos(playerid, Float , Float:y, Float:z)
|
Remove the extra param !