How do i set custom spawn point for myself? - 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)
+--- Thread: How do i set custom spawn point for myself? (
/showthread.php?tid=522254)
How do i set custom spawn point for myself? -
Steel_ - 26.06.2014
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?
Re: How do i set custom spawn point for myself? -
RedFusion - 26.06.2014
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
}
}
Re: How do i set custom spawn point for myself? -
Steel_ - 26.06.2014
Thanks a lot worked