Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- MasterJoker's Useful Function Include
- Supportable SAMP version: 0.3c - Present
- Version 1.0
- Version v1.0 Current Function: 8 Available useful Function
- Release Date: January 25, 2012
- Brought you by Mr.SmileWinky!
- */
- #if defined _MJUF_included
- #endinput
- #endif
- #define _MJUF_included
- #if defined MJUF
- #error MJUF are already defined.
- #endif
- #include <a_samp>
- #define white "{FFFFFF}"
- /* stock function */
- stock CreateTeleportPosition(playerid, Float:x, Float:y, Float:z, Float:ang)
- {
- SetPlayerPos(playerid, Float:x, Float:y, Float:z);
- SetPlayerFacingAngle(playerid, Float:ang);
- return 1;
- }
- stock CreateBotChatter(COLOR, const Botname[], const text[])
- {
- new string[321];
- format(string,sizeof(string), "[MJUFINC][BOT] %s: "white"%s", Botname, text);
- SendClientMessageToAll(COLOR, string);
- return 1;
- }
- stock KickAll()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && (i != i))
- {
- Kick(i);
- }
- }
- printf("MasterJoker's Useful Function Include Kick has been used");
- return 1;
- }
- stock BanAll(const reason[])
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && (i != i))
- {
- BanEx(i, reason);
- }
- }
- printf("MasterJoker's Useful Function Include Ban has been used");
- return 1;
- }
- stock IncreaseHealth(playerid, Float:health)
- {
- new Float:mycurrenthp;
- GetPlayerHealth(playerid, mycurrenthp);
- SetPlayerHealth(playerid, mycurrenthp + health);
- printf("MasterJoker's Useful Function Increase Health Generator has been used");
- return 1;
- }
- stock DecreaseHealth(playerid, Float:health)
- {
- new Float:mycurrenthp2;
- GetPlayerHealth(playerid, mycurrenthp2);
- SetPlayerHealth(playerid, mycurrenthp2 - health);
- printf("MasterJoker's Useful Function Decrease Health Generator has been used");
- return 1;
- }
- stock IncreaseArmour(playerid, Float:armour)
- {
- new Float:mycurrentarmour;
- GetPlayerHealth(playerid, mycurrentarmour);
- SetPlayerHealth(playerid, mycurrentarmour + armour);
- printf("MasterJoker's Useful Function Increase Armour Generator has been used");
- return 1;
- }
- stock DecreaseArmour(playerid, Float:armour)
- {
- new Float:mycurrentarmour2;
- GetPlayerHealth(playerid, mycurrentarmour2);
- SetPlayerHealth(playerid, mycurrentarmour2 - armour);
- printf("MasterJoker's Useful Function Decrease Armour Generator has been used");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement