Radar - 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: Radar (
/showthread.php?tid=267205)
Radar -
dariusmare - 07.07.2011
Hello . . .
I have make a radar for PD Faction.
i make command:
Code:
if(strcmp(cmd,"/radar",true)==0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
new radar;
if(PlayerInfo[playerid][pRadar] == 0)
{
PlayerInfo[playerid][pRadar] = 1;
SCM(playerid, COLOR_GREEN, "Radar is on!");
radar = SetTimer("Radar",1,true);
}
else
{
PlayerInfo[playerid][pRadar] = 0;
SCM(playerid,COLOR_GREEN, "Radar is off");
KillTimer(radar);
}
}
else
{
SCM(playerid, COLOR_RED, "You aren't in PD!");
}
}
an ia have maked the system:
Code:
public Radar()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (ProxDetectorS(9.0, playerid, i))
Here i don't know what i can write at ProxDetextorS(9.0,
? ? ? ? ? ? ?, i)
Pelase help
Re: Radar -
dariusmare - 07.07.2011
Anyone?