public for20hp(playerid){ new Float:health; GetPlayerHealth(playerid,health); if(health < 10) { ApplyAnimation(playerid,\"CRACK\",\"crckdeth2\",4.1,1,1,1,1,1); RemovePlayerFromVehicle(playerid); } return 1;}
if(strcmp(cmd, \"/felsegit\",true) == 0){ if (giveplayerid == playerid) { SendClientMessage(playerid, 0xFFFF00AA, \"Magadat nem segítheted fel.\"); } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFAA, \"HASZNÁLD: /felsegit [playerid]\"); return 1; } giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) { SetPlayerHealth(giveplayerid,30); ClearAnimations(giveplayerid); SendClientMessage(playerid, 0xFFFFFFAA, \"Felsegítetted a játékost.\"); SendClientMessage(giveplayerid, 0xFFFFFFAA, \"Menj, gyorsan tölsd fel az életed!\"); return 1; } else{ SendClientMessage(playerid, 0xFFFFFFAA, \"Nincs ilyen játékos !\"); }return 1;}
public for20hp(playerid){ new Float:health; GetPlayerHealth(playerid,health); if(health < 10) { ApplyAnimation(playerid,\"CRACK\",\"crckdeth2\",4.1,1,1,1,1,1); TogglePlayerControllable ( playerid, 0 ); RemovePlayerFromVehicle(playerid); } return 1;}
if(strcmp(cmd, \"/felsegit\",true) == 0){ if (giveplayerid == playerid) { SendClientMessage(playerid, 0xFFFF00AA, \"Magadat nem segítheted fel.\"); } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFAA, \"HASZNÁLD: /felsegit [playerid]\"); return 1; } giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) { SetPlayerHealth(giveplayerid,30); ClearAnimations(giveplayerid); SendClientMessage(playerid, 0xFFFFFFAA, \"Felsegítetted a játékost.\"); TogglePlayerControllable ( giveplayerid, 1 ); SendClientMessage(giveplayerid, 0xFFFFFFAA, \"Menj, gyorsan tölsd fel az életed!\"); return 1; } else{ SendClientMessage(playerid, 0xFFFFFFAA, \"Nincs ilyen játékos !\"); }return 1;}