[Include] sFunctions (209lines, 18functions) - first! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] sFunctions (209lines, 18functions) - first! (
/showthread.php?tid=411382)
sFunctions (209lines, 18functions) - first! -
Stabbing - 28.01.2013
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 »
• 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
Re: sFunctions (209lines, 18functions) - first! -
u3ber - 28.01.2013
so...why?
Re: sFunctions (209lines, 18functions) - first! -
RenSoprano - 30.01.2013
This is very cool, +REP
Re: sFunctions (209lines, 18functions) - first! -
fordawinzz - 30.01.2013
Quote:
Originally Posted by Stabbing
• S_IsPlayerInInterior »
Код:
if(IsPlayerInInterior(playerid,0)) print("You are not in interior!");
|
this is completely useless, just use GetPlayerInterior.
Re: sFunctions (209lines, 18functions) - first! -
Stabbing - 30.01.2013
Ok, thanks for everyone!
Re: sFunctions (209lines, 18functions) - first! -
Stabbing - 30.01.2013
You're right, I'll fix that in the next update