14.08.2012, 20:15
I can open the inc, but there is no name, it just uses constants like this:
public JB_Kick(playerid,reason[])
{
if(IsPlayerConnected(playerid))
{
new string[128];
format(string,sizeof(string),"~r~Kick notification:~n~%s",reason);
GameTextForPlayer(playerid,string,60000,4);
TogglePlayerControllable(playerid,false);
JB_SendFormattedMessageToAll(RED,"VibePlay: Kicking player '%s'. Reason: %s",ReturnPlayerName(playerid),reason);
JB_LogEx("%s (%s) has been kicked for %s.",ReturnPlayerName(playerid),ReturnPlayerIp(pla yerid),reason);
Kick(playerid);
return 1;
}
return 0;
}
public JB_Kick(playerid,reason[])
{
if(IsPlayerConnected(playerid))
{
new string[128];
format(string,sizeof(string),"~r~Kick notification:~n~%s",reason);
GameTextForPlayer(playerid,string,60000,4);
TogglePlayerControllable(playerid,false);
JB_SendFormattedMessageToAll(RED,"VibePlay: Kicking player '%s'. Reason: %s",ReturnPlayerName(playerid),reason);
JB_LogEx("%s (%s) has been kicked for %s.",ReturnPlayerName(playerid),ReturnPlayerIp(pla yerid),reason);
Kick(playerid);
return 1;
}
return 0;
}