Spawn - 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: Spawn (
/showthread.php?tid=617874)
Spawn -
StR_MaRy - 27.09.2016
hey guys i want to do when you enter in a Paintball as Police officer off duty and you have skin 124 when you enter the paintball , and when some1 killed you in paintball arena and you respawn in the arena again to give your last skin 124 not as Police officer example 39(not a pd skin id)
Код HTML:
if(IsACop(playerid))
{
if(OnDuty[playerid] == 0)
{
if(PlayerPaintballing[playerid] == 1)
{
SetPlayerSkin(playerid, 29);
}
else
{
OnDuty[playerid] = 0;
SetPlayerSkin(playerid, 29);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,0xFFFFFFAA);
}
}
}
this is the sistem under function oplayerspawn , when you are off duty and if(PlayerPaintballing[playerid] == 1)
to set your last skin not skin 29 , under is if(PlayerPaintballing[playerid] == 0) if you spawn first time on server you get those under else