Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- #Autor: [iPs]SuYaNw
- #Função: Bloquear o uso de comandos caso o jogador estiver morrendo.
- */
- #include a_samp
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- static Float:Vida[MAX_PLAYERS]; GetPlayerHealth(playerid, Vida[playerid]);
- iF(Vida[playerid] < 50.0)
- return SendClientMessage(playerid, -1,"VocÊ não pode usar comandos quando estiver morrendo.");
- return 1;
- }
- // Código Reparado, Agradecimentos á Scrat por me alertar :)
Advertisement
Add Comment
Please, Sign In to add comment