Speedcam - 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: Speedcam (
/showthread.php?tid=483754)
Speedcam; Giving +REP -
rocker3410 - 27.12.2013
Well i got the MLRP (Modern Life Roleplay) script made by Roy Nash. It says pay system in make when you go past limit of speedcam. I was wondering how do i make it that it takes money? A code will be nice thanks
Код:
new CSpeed;
CSpeed = GetPlayerSpeed(i, true);
if(CSpeed > SpeedCams[p][scmaxspeed] && SpeedCamPlayer[i] == 0){
SpeedCamPlayer[i] = 1;
TextDrawShowForPlayer(i, radarTD[i]);
SetTimerEx("RemoveRadarTD",1000, false, "i", i);
format(String, sizeof(String), "You were caught on speed cam(%d/%d) ((Pay system in make))", CSpeed, SpeedCams[p][scmaxspeed]);
SendClientMessage(i, COLOR_RED, String);
SetTimerEx("SpeedCamCheck", 5000, false, "d", i);
}
}
}
}
}
}
public SpeedCamCheck(playerid){
SpeedCamPlayer[playerid] = 0;
return 1;
}
Ill be giving +REP
Re: Speedcam -
xVIP3Rx - 27.12.2013
Add
GivePlayerMoney with minus..
example
pawn Код:
new CSpeed = GetPlayerSpeed(i, true);
if(CSpeed > SpeedCams[p][scmaxspeed] && SpeedCamPlayer[i] == 0)
{
SpeedCamPlayer[i] = 1;
TextDrawShowForPlayer(i, radarTD[i]);
SetTimerEx("RemoveRadarTD",1000, false, "i", i);
format(String, sizeof(String), "You were caught on speed cam(%d/%d) ((Pay system in make))", CSpeed, SpeedCams[p][scmaxspeed]);
SendClientMessage(i, COLOR_RED, String);
SetTimerEx("SpeedCamCheck", 5000, false, "d", i);
GivePlayerMoney(playerid, -100) //Change the -100 to whatever..
}
}
}
}
}
}
Re: Speedcam -
rocker3410 - 27.12.2013
+REP thanks