God Mode -
MRSAS - 22.04.2015
Make This Code Then Compile It And Put It In " Sampserver/filterscripts"
Код:
#include <a_samp>
#include <zcmd>
This Files That We Use To Starting A Simple Script , If You Haven't ZCMD you can't Do That Script.
Код:
public OnFilterScriptInit()
{
print("--------------------");
print("Mrsas Godmode ");
print("--------------------");
return 1;
}
When You Start Your Server You Will See This As "Credits"
Код:
public OnFilterScriptExit()
{
return 1;
}
Really , Not Needed This Time, It Appears If You Did " /rcon unloadfs "name" "
Код:
CMD:god(playerid, params[])
{
SetPlayerHealth(playerid, 1000);
SetPlayerColor(playerid, 0xffff); // blue Color ..... >:/
SetPlayerArmour(playerid, 1000);
SetPlayerSkin(playerid, 0); // Cj >:)
GivePlayerWeapon(playerid, 37, 500); // Minigun + Godmode O.o?!
return 1;
}
That Is The Command That You Type In Game " /god " And We Defined It By " ZCMD ", " SetPlayerHealth" It Used To Sed The Players Health , -1 = Dead, 1000 = Infinite, 100 = Just Heal the player, "SetPlayerArmour" Setting Player's Armour -1 = No Armour, 100 = full armour, 1000 = infinite, "SetPlayerColor" It Sets The Player's Color To blue Or Any color you want " oxffff = blue , 0xfffff = black , " SetPlayerSkin " Just Changing The Skin Of the " Player " Where , 0 = default , 12 = girl , 87 = hot girl O.o, 34 = cowboy" you can find more at : wiki.sa-mp.com , "GivePlayerWeapon" Giving The Player's Any Weapon , Must Add An ID!.
Full Code:
Код:
#include <a_samp>
#include <zcmd>
public OnFilterScriptInit()
{
print("--------------------");
print("Mrsas Godmode ");
print("--------------------");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:god(playerid, params[])
{
SetPlayerHealth(playerid, 1000);
SetPlayerColor(playerid, 0xffff); // blue Color ..... >:/
SetPlayerArmour(playerid, 1000);
SetPlayerSkin(playerid, 0); // Cj >:)
GivePlayerWeapon(playerid, 37, 500); // Minigun + Godmode O.o?!
return 1;
}
That Tutorial Shows You How To Make A Simple [ Godmode ] Script.
Re: God Mode +REP -
donsta3000 - 22.04.2015
I believe this is in the wrong section.
Re: God Mode +REP -
MRSAS - 22.04.2015
No. >
Re: God Mode +REP -
donsta3000 - 22.04.2015
Then what do you need help with and why does it say "That Tutorial Shows You How To Make A Simple [ Godmode ] Script"?
Re: God Mode +REP -
MRSAS - 22.04.2015
As A Help Mod , You Can't Tell Me What I Do, Leave The Topic Man.
Re: God Mode +REP -
donsta3000 - 22.04.2015
Quote:
Originally Posted by MRSAS
As A Help Mod , You Can't Tell Me What I Do, Leave The Topic Man.
|
It appears that you don't want to be helped, thus I shall cease to help you. May I just point out that you are no 'Help Mod'.
Re: God Mode +REP -
Azula - 22.04.2015
PHP код:
#define HD (Float:0x7FFFFFFF)
SetPlayerHealth(playerid, HD);
Re: God Mode +REP -
MRSAS - 22.04.2015
it can be :
Код:
#define GOD(Float:0x7FFFFFFF)
SetPlayerHealth(playerid, GOD);
Anyway thanks
Re: God Mode +REP -
MRSAS - 22.04.2015
Quote:
Originally Posted by donsta3000
It appears that you don't want to be helped, thus I shall cease to help you. May I just point out that you are no 'Help Mod'. 
|
Ok, Thanks :P.
Re: God Mode +REP -
Sithis - 22.04.2015
This is in the wrong section and it's also a coding mess. Nothing is explained.