Locked Classes, Vehicles? - 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: Locked Classes, Vehicles? (
/showthread.php?tid=283358)
Locked Classes, Vehicles? -
Blunt - 14.09.2011
Well i was wondering if it's possible to make a Class on the Class selection Locked for a Certain Player, Something like this, But player specified?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
SetPlayerPos(playerid, 2375.7463,-1645.9944,13.5322);
SetPlayerCameraPos(playerid, 2375.9658,-1647.8722,13.5405);
SetPlayerCameraLookAt(playerid, 2375.7463,-1645.9944,13.5322);
GameTextForPlayer(playerid, "~g~EastSide Guerillas", 5000, 5);
SetPlayerColor(playerid, 0x2D964DFF);
SetPlayerFacingAngle(playerid, 180.000);
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
//2nd Line - 2375.7463,-1645.9944,13.5322
//Add the locked class functions here, or something :\
}
}
Re: Locked Classes, Vehicles? -
=WoR=Varth - 14.09.2011
Vehicles?
You can prevent player from spawning in
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Re: Locked Classes, Vehicles? -
Blunt - 14.09.2011
Quote:
Originally Posted by varthshenon
|
Locked Classes, And Vehicles.. Not spawning
Re: Locked Classes, Vehicles? -
=WoR=Varth - 14.09.2011
Quote:
Originally Posted by Blunt
Locked Classes, And Vehicles.. Not spawning
|
What the?
Re: Locked Classes, Vehicles? -
Berky - 14.09.2011
Код:
switch(classid)
{
case 1:
{
// class settings for a classid 1 returns to default if it's not 1
}
default:
{
// class settings if it's not the case listed below
}
}