SA-MP Forums Archive
speed cam flash [+Rep] - 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: speed cam flash [+Rep] (/showthread.php?tid=578528)



speed cam flash [+Rep] - simo0000 - 20.06.2015

hello guys
today i make a speed cam system saves(id,positions,range,limit) and all works fine

but i need an idea for how to make the flash when the player is range of the speedcam and it will take some money from player


please help me

sorry for my bad englsih


Re: speed cam flash [+Rep] - UltraScripter - 20.06.2015

just create textdrawbox color white on all screen


Re : Re: speed cam flash [+Rep] - simo0000 - 20.06.2015

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
just create textdrawbox color white on all screen
but where to set string and take some money from player is it OnplayerUpdate callback?


Re: speed cam flash [+Rep] - UltraScripter - 20.06.2015

use timer and public
pawn Код:
public OnFilterScriptInit()
{
   SetTimer("yourpublic", 500, true);
   return1;
}

forward yourpublic(playerid);

public yourpublic(playerid)
{
    /// your code/////////////
    return 1;
}



Re : Re: speed cam flash [+Rep] - simo0000 - 20.06.2015

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
use timer and public
pawn Код:
public OnFilterScriptInit()
{
   SetTimer("yourpublic", 500, true);
   return1;
}

forward yourpublic(playerid);

public yourpublic(playerid)
{
    /// your code/////////////
    return 1;
}
ok thanks +repped
rep me back if you want
thanks again


Re: speed cam flash [+Rep] - UltraScripter - 20.06.2015

i will rep you tommarow
cant rep today anymore


Re : Re: speed cam flash [+Rep] - simo0000 - 20.06.2015

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
i will rep you tommarow
cant rep today anymore
no problem mate thnx