30.11.2012, 15:18
galera olhem esses 2 comandos:
esses 2 comandos funcionan mesmo sem a pessoa estar dentro de um veiculo e sem estar no local (Istunevip),oq eu faзo? :S
pawn Код:
if(strcmp(cmd, "/blindarcarro", true) == 0)
{
if (PlayerInfo[playerid][pVIP] >= 5 || IsPlayerInAnyVehicle(playerid) || Istunevip(playerid))
{
GetPlayerName(playerid, playername,sizeof(playername));
format(string, sizeof(string), "%s estб com o carro blindado!", playername);
SendClientMessageToAll(COLOR_RED,string);
GivePlayerMoneyEx(playerid,-1500000);
RepairCar[playerid] = GetPlayerVehicleID(playerid);
SetVehicleHealth(RepairCar[playerid], 10000.0);
}
return 1;
}
pawn Код:
if(strcmp(cmd, "/neon", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4 || IsPlayerInAnyVehicle(playerid) || PlayerInfo[playerid][pVIP] >= 5 || Istunevip(playerid))
{
ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Cores de Neon", "Azul Escuro\nVermelho\nVerde\nBranco\nVioleta\nAmarelo\nCiano\nAzul Claro\nRosa\nLaranja\nVerde Claro\nAmarelo Claro\nRetirar Neon", "Selecionar", "Cancelar");
GetPlayerName(playerid, playername,sizeof(playername));
format(string, sizeof(string), "* %s Estб escolhendo um neon!", sendername);
ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}