SA-MP Forums Archive
Basic RP spawns - 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: Basic RP spawns (/showthread.php?tid=396544)



Basic RP spawns [REP]++ for helpful answers! - 69 - 01.12.2012

Hey guys.
I would like it that whenever you join an RP server you spawn at a location (not your last one) but I want to avoid the SPAWN menu (you know, the one where you click the skins and press spawn). So basically, whenever you click log in you spawn with your skin in a location (I'll have my own coordinates).


Re: Basic RP spawns - [MM]RoXoR[FS] - 01.12.2012

pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid,true);
//And your other functions
}

//After player login do TogglePlayerSpectating(playerid,false);

public OnPlayerRequestClass(playerid,classid)
{
    SetSpawnInfo(playerid,...and other things (your coordinates));
    SpawnPlayer(playerid);
}