Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(heal, 4, cmdtext);
- return 0;
- }
- dcmd_heal(playerid, params[])
- {
- new id;
- if(sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_AZUL, "Usa: /heal [ID]");
- else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_AZUL, "Este jugador no esta conectado");
- else
- {
- SetPlayerHealth(id, 100.0);
- SendClientMessage(id, COLOR_AZUL, "Te han curado");
- SendClientMessage(playerid, COLOR_AZUL, "Lo has curado");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement