cop system - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cop system (
/showthread.php?tid=65791)
cop system -
thuron - 16.02.2009
hello,
I am editing a cop system so i can use it, but if you make yourself cop, and u spawn, or exit a car, you are civilian again.... how can i change that?
Re: cop system -
Serbish - 16.02.2009
With your text and informations we can help you for sure...
Re: cop system -
thuron - 17.02.2009
anyone?
Re: cop system -
Ghett0 - 18.02.2009
A) Don't cintuple post
B) Fix the indentation on that crap, it's hard to read
Re: cop system -
XPlatform - 18.02.2009
Check the player's team in OnPlayerSpawn(), then according to their team value, assign the correct weapons/skin.
Example:
Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_COP)
{
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerPos(playerid, 2295.0293,2459.4961,10.8203);
SetPlayerAmmo(playerid,24,400);
SetPlayerAmmo(playerid,3,1);
SetPlayerSkin(playerid, 280);
}
return 1;
}
Hope this helps,
Stephen