Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Criado Por [JFS]Jonathan Feitosa !!
- Contato MSN: jonathan_feitosa@hotmail.com.br
- Skype: jonathanfeitosajfs
- Visite: www.fb.com/GoHumorGTA
- Postado Dia: 26/01/2012 !
- */
- #include <a_samp>
- #define JFSAtualizarRandom \
- (3)
- #define MaxVehicles \
- (200)
- #define JFSRaio \
- (30.0)
- #define Altura \
- (0.3)
- #define NumeroMensagens \
- (4)
- #define NumeroCores \
- (4)
- new JFSRandomVeiculos[NumeroMensagens][] =
- {
- "Este Veiculo é Livre !",
- "Este Veiculo é do Servidor !",
- "Use esse Veiculo !",
- "Criado Por Jonathan Feitosa"
- };
- new JFSRandomCores[NumeroCores] =
- {
- 0xFF0000FF,
- -1,
- 0xFFFF00AA,
- 0x00FFFFAA
- };
- new Text3D:JFSLVeiculo[MaxVehicles], TempoJFS;
- public OnGameModeInit()
- {
- new Random = random(sizeof(JFSRandomVeiculos)), RandomCOR = random(sizeof(JFSRandomCores));
- for(new i = 0; i < MaxVehicles; ++i)
- {
- JFSLVeiculo[i] = Create3DTextLabel(JFSRandomVeiculos[Random], JFSRandomCores[RandomCOR], 0.0, 0.0, 0.0, JFSRaio, 0);
- Attach3DTextLabelToVehicle(JFSLVeiculo[i], i, 0.0, 0.0, Altura);
- }
- TempoJFS = SetTimer("JFSRandomTimerVeiculos", JFSAtualizarRandom*1000, true);
- return true;
- }
- public OnGameModeExit()
- {
- for(new i = 0; i < MaxVehicles; ++i) Delete3DTextLabel(JFSLVeiculo[i]);
- return KillTimer(TempoJFS), true;
- }
- forward JFSRandomTimerVeiculos();
- public JFSRandomTimerVeiculos()
- {
- new Random = random(sizeof(JFSRandomCores)), RandomCOR = random(sizeof(JFSRandomCores));
- for(new i = 0; i < MaxVehicles; ++i) Update3DTextLabelText(JFSLVeiculo[i], JFSRandomCores[RandomCOR], JFSRandomVeiculos[Random]);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement