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

I want to spawn in my own Private area which only i have access to how could i make so with my nickname i can spawn in that area?
Reply
#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
#3

Thanks a lot worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)