SA-MP Forums Archive
Scripting help - 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: Scripting help (/showthread.php?tid=502921)



Scripting help - JoanB - 26.03.2014

Hey guys so i am making a Timmy visits Gamemode and i would like you guys to tell me where the Los Santos Police Department ID is like when you does
Quote:

addplayerclass 0,120323,23,203,203,2 <-- Like that

Could you guys help me find it


Re: Scripting help - TLN - 26.03.2014

I'm not sure about what you meant, but try this.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
The interior id is 6.
And the coordinates.
pawn Код:
246.783996,63.900199,1003.640625