10.03.2013, 21:10
isto?
Entra num veiculo e faz /... que remove
pawn Код:
if(strcmp(cmd, "/aremovecarfaction", true) == 0) {
if(IsPlayerConnected(playerid)) {
if (PlayerInfo[playerid][Admin] >= 5 || PlayerInfo[playerid][HAdmin] == 1 || PlayerInfo[playerid][HAdmin] >= 2) {
new car = GetPlayerVehicleID(playerid) - 1,
wstring[128];
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "{FF0000}*Erro:{F6F6F6} Nгo estбs dentro de um veнculo.");
if(DynamicCars[car][FactionCar] != 255) return SendClientMessage(playerid, COLOR_RED, "{FF0000}*Erro:{F6F6F6} Este veiculo nгo й de nenhuma faction.");
DynamicCars[car][FactionCar] = 255;
format(wstring, sizeof(wstring), "Tu removeste o veiculo ID %d's da faction.", car+1);
SendClientMessage(playerid,COLOR_ADMINCMD, wstring);
return SaveDynamicCars();
} else {
SendClientMessage(playerid, COLOR_RED, ESKECE);
}
}
return 1;
}