28.01.2013, 19:14
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(0xFFFFFFFF,"your text...",1,3,4,5);
Код:
S_SetPlayerHealth(playerid,0,1,5,0);
Код:
printf("%d",S_GetHighNumber(100,10,50));
Код:
S_RemovePlayerWeapon(playerid,26,31,24);
Код:
#define TEAM_A (001) SendMessageToTeam(0xFFFFFFFF,"hello team a",TEAM_A);
Код:
SendMessageToAdmins(0xFFFFFFFF,"hello admins!");
Код:
S_GetPlayerID("Dan");
Код:
CreateVehicle(522,0.0,0.0,0.0,0.0,-1,-1,-1); printf("GAMEMODE VEHICLES: %d",S_CountVehicles());
Код:
printf("%s",S_ConvertNumbers(150000));
Код:
printf("%d",FindSomePlayer("Da"));
Код:
KickAll();
Код:
S_BanAll();
Код:
S_ResetServerMoney();
Код:
S_ResetMultiMoney(0,5,4,3);
Код:
S_KickAwayPlayers(1,5,6);
Код:
S_BanAwayPlayers(1,5,6);
Код:
if(IsPlayerInInterior(playerid,0)) print("You are not in interior!");
Solidfiles - http://www.solidfiles.com/d/13b1af38e1/
Pastebin - http://pastebin.com/NWmJhQ3W