OnPlayerRequestClass - 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: OnPlayerRequestClass (
/showthread.php?tid=170704)
Problem with a small script -
jiggy89 - 23.08.2010
Hi all,
I think i got a problem with a small script.
I saw a script here on the sa-mp forum, that when a certain player comes into the game.
To all the players online they get a message.
This is a part of the script :
pawn Код:
forward Spawn(playerid);
SetTimerEx("Spawn", 2000, 0, "i", playerid);
public Spawn(playerid)
{
new PLName[24];
GetPlayerName(playerid, PLName, 24);
{
if(!strcmp(PLName, "Jiggy", true))
{
SendClientMessageToAll(COLOR_LIGHTBLUE, "BOO-YEAH, The Awesome Admin has Arrived FTW!");
SpawnPlayer(playerid);
return 1;
}
return 0;
}
}
but when i use this, i dont got a chance to select a skin.
anyone got a suggestion ?
--- edit: found the problem myself, had to remove "SpawnPlayer(playerid);" ---
Re: OnPlayerRequestClass -
Nonameman - 24.08.2010
Where do you wanna use the Spawn(playerid) with a Timer?
Re: OnPlayerRequestClass -
Brian_Furious - 24.08.2010
You cant choose a skin?