Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* [FS][FS] Icone de Vida Encima do Player (Good For A/D) */
- /***********************************************/
- #include <a_samp>
- #include <a_objects>
- #define TEMPO 1000
- /***********************************************/
- new Desativado[MAX_PLAYERS];
- new object;
- new object2;
- /***********************************************/
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- /* DESATIVAR */
- if(!strcmp(cmdtext, "/desativar", true))
- {
- Desativado[playerid] = 10;
- return 1;
- }
- /* ATIVAR */
- if(!strcmp(cmdtext, "/ativar", true))
- {
- Desativado[playerid] = 0;
- return 1;
- }
- return 0;
- }
- /***********************************************/
- public OnPlayerDamageStatusUpdate(playerid)
- {
- if(Desativado[playerid] == 0)
- {
- object2 = CreateObject(2053, 0, 0, 0, 0, 0, 0);
- AttachObjectToPlayer(object, playerid, 0, 0, 1.35, 0, 0, 0);
- }else{
- object = CreateObject(2053, 0, 0, 0, 0, 0, 0);
- AttachObjectToPlayer(object, playerid, 0, 0, 0.95, 0, 0, 0);
- }
- }
- /***********************************************/
- {
- DestroyObject(objectid);
- }
- forward OnPlayerDamageStatusUpdate(playerid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement