Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define scriptname healall
- public OnFilterScriptInit()
- {
- for(new i; i < MAX_PLAYERS; i++)
- {
- SetPlayerHealth(i,100);
- }
- print("Minden játékos élete feltöltve, a script leáll!");
- new str[128];
- format(str,128,"unloadfs %s",scriptname);
- SendRconCommand(str);
- }
- /* put this on your gamemode, if you want to use this script!
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- if(strcmp("/healall",cmdtext,true) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- new str[128];
- format(str,128,"loadfs %s",scriptname);
- SendRconCommand(str);
- return 1;
- }
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement