Spy 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: Spy help (
/showthread.php?tid=340219)
Spy Class help (rep++++) -
iOmar - 06.05.2012
Guys i did this.
pawn Код:
CMD:spyusa(playerid,parmas[])
{
if(gPlayerClass[playerid] == SPY)
{
SetPlayerSkin(playerid,287);
SetPlayerColor(playerid,COLOR_BLUE);
}
else
{
SendClientMessage(playerid,COLOR_DARKRED,"ERROR: You need to get SPY Class to use this Command");
}
return 1;
}
In game i want that player color in change will remain same as team. if his team is Germany (orange colour) than it will remain orange during chat. but his map icon change to blue (which is USA team colour). And when he kill by some one or commit sucide than his skin and colour will change back (normal)...
Please i need help....
Re: Spy help -
iOmar - 07.05.2012
Any one. please.....
Re: Spy help -
Snipa - 07.05.2012
Loop +
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer Also, set a var.. like Spying[playerid] = 1;
OnPlayerDeath -> if(Spying[playerid] = 1) { SetPlayerSkin(playerid, 162); }
Re: Spy help -
iOmar - 07.05.2012
pawn Код:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
I am not understanding correctly. Please Snipa can u help??
Re: Spy help -
iOmar - 07.05.2012
Any one??