How do i set custom spawn point for myself?
#2

Try something like this!
pawn Код:
public OnPlayerSpawn(playerid)
{
    new name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    if(!strcmp(name, "Wizdo", true)) //Not case sensitive! Replace true with false to make it case sensitive!
    {
        SetPlayerPos(playerid, 0.0, 0.0, 0.0); // Your special spawn
    }
    else
    {
        SetPlayerPos(playerid, 0.0, 0.0, 0.0); // Regular spawn
    }
}
Reply


Messages In This Thread
How do i set custom spawn point for myself? - by Steel_ - 26.06.2014, 16:05
Re: How do i set custom spawn point for myself? - by RedFusion - 26.06.2014, 17:02
Re: How do i set custom spawn point for myself? - by Steel_ - 26.06.2014, 20:05

Forum Jump:


Users browsing this thread: 3 Guest(s)