if (killerid != INVALID_PLAYER_ID)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
GetPlayerName(playerid, VictimName, sizeof(VictimName));
GetPlayerName(killerid, KillerName, sizeof(KillerName));
format(Msg, 128, "VocГЄ matou {FFFFFF}%s{FF0000}, e agora estГЎ sendo procurado pela polГ*cia!", VictimName);
SendClientMessage(killerid, VERMELHO, Msg);
format(Msg, 128, "{0000FF}[Departamento de PolГ*cia] O jogador {FFFFFF}%s{0000FF} matou {FFFFFF}%s{0000FF}.", KillerName, VictimName);
Police_SendMessage(Msg);
format(Msg, 128, "{0000FF}[Objetivo] {FFFFFF}Perseguir e multar.");
Police_SendMessage(Msg);
}
if(killerid != INVALID_PLAYER_ID)
{
if(IsPlayerInVehicle(killerid))
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
GetPlayerName(playerid, VictimName, sizeof(VictimName));
GetPlayerName(killerid, KillerName, sizeof(KillerName));
format(Msg, 128, "VocГЄ matou {FFFFFF}%s{FF0000}, e agora estГЎ sendo procurado pela polГ*cia!", VictimName);
SendClientMessage(killerid, VERMELHO, Msg);
format(Msg, 128, "{0000FF}[Departamento de PolГ*cia] O jogador {FFFFFF}%s{0000FF} matou {FFFFFF}%s{0000FF}.", KillerName, VictimName);
Police_SendMessage(Msg);
format(Msg, 128, "{0000FF}[Objetivo] {FFFFFF}Perseguir e multar.");
Police_SendMessage(Msg);
}
}
warning 202: number of arguments does not match definition
IsPlayerInAnyVehicle(killerid)
PHP код:
|
if(IsPlayerInAnyVehicle(killerid))
if(killerid != INVALID_PLAYER_ID)
{
if(!IsPlayerInAnyVehicle(killerid))
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
GetPlayerName(playerid, VictimName, sizeof(VictimName));
GetPlayerName(killerid, KillerName, sizeof(KillerName));
format(Msg, 128, "VocГЄ matou {FFFFFF}%s{FF0000}, e agora estГЎ sendo procurado pela polГ*cia!", VictimName);
SendClientMessage(killerid, VERMELHO, Msg);
format(Msg, 128, "{0000FF}[Departamento de PolГ*cia] O jogador {FFFFFF}%s{0000FF} matou {FFFFFF}%s{0000FF}.", KillerName, VictimName);
Police_SendMessage(Msg);
format(Msg, 128, "{0000FF}[Objetivo] {FFFFFF}Perseguir e multar.");
Police_SendMessage(Msg);
}
}
public OnPlayerConnect(playerid) {
if(IsPlayerNPC(playerid)) {
SetPlayerHealth(playerid, Float:0x7F800000);
}
return 1;
}