11.09.2009, 23:52
Ok, I'm really confused now. How do i add 2 or more functions in a call back. For instance,
lets say I want to add a thing to disarm someone if they get a minigun or any other weapon, how would I add that to an existing code? (I'm not asking for a code to kick for miniguns, I'm asking how to add 2 or more functions in a call back (for the people who misread stuff))
Код:
public OnPlayerUpdate(playerid)
//kicks for high ping.
{
new string[128];
new pName[16];
GetPlayerName(playerid, pName, sizeof(pName));
if(GetPlayerPing(playerid) >= 750)
{
format(string, sizeof(string), "SERVER: %s has been kicked for high ping (max 750)", pName);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessage(playerid, COLOR_RED, "SERVER: You have been kicked for high ping.");
Kick(playerid);
}
return 1;
}

