03.11.2011, 23:16
Tente isso;
pawn Код:
public OnPlayerUpdate(playerid)
{
if(PlayerInfo[playerid][GODCAR] == 1) {
if(!VAreos(GetVehicleModel(GetPlayerVehicleID(playerid)))) {
RepairVehicle(GetPlayerVehicleID(playerid));
}
}
if(GetPlayerWeapon(playerid) == 36) {
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string,128,"%s Foi kickado pelo administrador BOT.",pName);
SendClientMessageToAll(0xFF0000AA,string);
Kick(playerid);
}
return 1;
}