08.09.2010, 16:17
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN)
{
SendClientMessage(playerid,0xFF5A00FF,"You where kicked by the system.Reason:Minigun");
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s where kicked by the system.Reason: Minigun ", pName);
SendClientMessageToAll(0xFF5A00FF, string);
Kick(playerid);
return 0;
}
I think that looks better in your script
{
SendClientMessage(playerid,0xFF5A00FF,"You where kicked by the system.Reason:Minigun");
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s where kicked by the system.Reason: Minigun ", pName);
SendClientMessageToAll(0xFF5A00FF, string);
Kick(playerid);
return 0;
}
I think that looks better in your script