[Include] sFunctions (209lines, 18functions) - first!
#1

Stabbing Functions


Functions list:

S_GiveMultiWeapons - Give player weapons example: 26,100 that given the player Sawn-off Shotgun and 100 balls.
S_SendMultiMessage - Send Message to players example:"hello",0,1,2 that send hello message from id's: 0,1,2.
S_SetPlayerHealth - Get playerid health and set him to players example: playerid,0,1,2 this take the playerid health an set him to id's: 0,1,2.
S_GetHighNumber - Get the high number example: 51,20,10 this return 51 beacuse he is the high number.
S_RemovePlayerWeapon - Remove player weaponexample: 26 that remove player Sawn-off weapon.
S_SendMessageToTeam - This is send message to team example: "Hello",1 that send message hello to team (1).
S_SendAdminsMessage - This send message to admins rcon.
S_GetPlayerID - You write name and that return you the ID of player.
S_CountVehicles - This function Count all vehicles in the server.
S_ConvertNumbers - This function use for numbers comma (,) example: 150000 the function convert him to 150,000.
S_FindSomePlayer - That find you a nickname of player example: my name is Dan if you write D thats return the nickname Dan id.
S_KickAll - This function kick all players from the server.
S_BanAll - This function ban all players from the server.
S_ResetServerMoney - That reset all players money.
S_ResetMultiMoney - That reaset money only for your id's example: 15,0,3 this reset money for id's: 15,0,3.
S_KickAwayPlayers - That kick all players from the server away from your id's example: 15,1 this kick all players away from id's: 15 and 1.
S_BanAwayPlayers - Like a S_KickAwayPlayers function.
S_IsPlayerInInterior - Thats check if you in interiorid.

Examples:

S_GiveMultiWeapons »
Код:
S_GiveMultiWeapons(playerid,26,150,31,9);
S_SendMultiMessage »
Код:
S_SendMultiMessage(0xFFFFFFFF,"your text...",1,3,4,5);
S_SetPlayerHealth »
Код:
S_SetPlayerHealth(playerid,0,1,5,0);
S_GetHighNumber »
Код:
printf("%d",S_GetHighNumber(100,10,50));
S_RemovePlayerWeapon »
Код:
S_RemovePlayerWeapon(playerid,26,31,24);
S_SendMessageToTeam »
Код:
#define TEAM_A (001)
SendMessageToTeam(0xFFFFFFFF,"hello team a",TEAM_A);
S_SendMessageToAdmins »
Код:
SendMessageToAdmins(0xFFFFFFFF,"hello admins!");
S_GetPlayerID »
Код:
S_GetPlayerID("Dan");
S_CountVehicles »
Код:
CreateVehicle(522,0.0,0.0,0.0,0.0,-1,-1,-1);
printf("GAMEMODE VEHICLES: %d",S_CountVehicles());
S_ConvertNumbers »
Код:
printf("%s",S_ConvertNumbers(150000));
S_FindSomePlayer »
Код:
printf("%d",FindSomePlayer("Da"));
S_KickAll »
Код:
KickAll();
S_BanAll »
Код:
S_BanAll();
S_ResetServerMoney »
Код:
S_ResetServerMoney();
S_ResetMultiMoney »
Код:
S_ResetMultiMoney(0,5,4,3);
S_KickAwayPlayers »
Код:
S_KickAwayPlayers(1,5,6);
S_BanAwayPlayers »
Код:
S_BanAwayPlayers(1,5,6);
S_IsPlayerInInterior »
Код:
if(IsPlayerInInterior(playerid,0)) print("You are not in interior!");
Downloads:

Solidfiles - http://www.solidfiles.com/d/13b1af38e1/
Pastebin - http://pastebin.com/NWmJhQ3W
Reply
#2

so...why?
Reply
#3

This is very cool, +REP
Reply
#4

Quote:
Originally Posted by Stabbing
Посмотреть сообщение
S_IsPlayerInInterior »
Код:
if(IsPlayerInInterior(playerid,0)) print("You are not in interior!");
this is completely useless, just use GetPlayerInterior.
Reply
#5

Ok, thanks for everyone!
Reply
#6

You're right, I'll fix that in the next update
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)