OnPlayerRequestClass
#1

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);" ---
Reply


Messages In This Thread
Problem with a small script - by jiggy89 - 23.08.2010, 23:33
Re: OnPlayerRequestClass - by Nonameman - 24.08.2010, 00:38
Re: OnPlayerRequestClass - by Brian_Furious - 24.08.2010, 00:41

Forum Jump:


Users browsing this thread: 1 Guest(s)