about scoring again - 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: about scoring again (
/showthread.php?tid=114926)
about scoring again -
rs2fun111 - 21.12.2009
how i can make save scoring for all the cars?
by this code
Код:
public kalvicarscore()
{
for(new i=0; i<MAX_PLAYERS; i++ )
{
if(GetVehicleModel(GetPlayerVehicleID(i)) == 480)
{
SetPlayerScore(i, GetPlayerScore(i)+1);
}
}
return 1;
}
Re: about scoring again -
rs2fun111 - 21.12.2009
noone cant help ?
Re: about scoring again -
Marcel - 21.12.2009
pawn Код:
public kalvicarscore()
{
for(new i=0; i<MAX_PLAYERS; i++ )
{
if(IsPlayerInAnyVehicle(i))
{
SetPlayerScore(i, GetPlayerScore(i)+1);
}
}
return 1;
}