Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*******************************************************************************
- * *
- * @Nome script: Peppinux_ Admin System *
- * @Versione script: 1.0 *
- * @Autore script: ~Peppinux AKA Peppe_Stasu *
- * @Ringraziamenti: *
- * .: Phantom :. - Idea script *
- * mitosking - Aiuto fix bug *
- * *
- * *
- * @ Script realizzato esclusivamente per GTA-Center.com *
- * *
- * @ Vietato rimuovere i crediti. *
- * *
- *******************************************************************************/
- //******************************************************************************
- #include <a_samp>
- //******************************************************************************
- forward rotazionePlayer(playerid, Float:gradi);
- //==============================================================================
- enum E_GIOCATORE
- {
- Float:gAngoloFacciale,
- gTimerRotazione
- };
- new Giocatore[MAX_PLAYERS][E_GIOCATORE];
- //******************************************************************************
- stock inizioRotazionePlayer(playerid, Float:gradi = 1.0, ms = 50)
- {
- GetPlayerFacingAngle(playerid, Giocatore[playerid][gAngoloFacciale]);
- Giocatore[playerid][gTimerRotazione] = SetTimerEx("rotazionePlayer", ms, true, "df", playerid, gradi);
- return 1;
- }
- //==============================================================================
- stock fineRotazionePlayer(playerid)
- {
- KillTimer(Giocatore[playerid][gTimerRotazione]);
- return 1;
- }
- //******************************************************************************
- public rotazionePlayer(playerid, Float:gradi)
- {
- Giocatore[playerid][gAngoloFacciale] += gradi;
- SetPlayerFacingAngle(playerid, Giocatore[playerid][gAngoloFacciale]);
- return 1;
- }
- //******************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement