26.06.2014, 16:05
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?
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
}
}