16.12.2010, 19:35
pawn Код:
CMD:spot(playerid,params[])
{
if(Pinfo[playerid][Admin] == 0 && Pinfo[playerid][Mod] == 0)
{
SFT(playerid,"You cannot use this command."); return 1;
}
if(SpotEnabled[playerid] == 0)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(Pinfo[playerid][Admin] > 0)
{
SetPlayerMarkerForPlayer(i,playerid,0xffcc00FF); //Orange
}
else
{
SetPlayerMarkerForPlayer(i,playerid,0x333399FF); //Blue
}
}
SpotEnabled[playerid] = 1;
}
else
{
for(new i=0; i < MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(i,playerid,0x99CEFF00);
}
SpotEnabled[playerid] = 0;
}
return 1;
}