12.12.2012, 03:11
Tente isto
pawn Код:
CMD:trancar(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid,0xFF004040,"Vocк nгo pode trancar esse veiculo.");
static
Int,
P
;
for(Int = 0, P = GetMaxPlayers(); Int != P; ++Int){
if(Int != playerid){
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), Int, 0, 1);
}
}
SendClientMessage(playerid, 0x33AA33AA, "Veiculo Trancado");
PlayerPlaySound(playerid,1056, 0.0, 0.0, 0.0);
return true;
}
CMD:destrancar(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, vermelho, "Voce nгo estб em um veнculo!");
if(GetPlayerState(playerid)!= PLAYER_STATE_DRIVER)
return SendClientMessage(playerid,vermelho,"Voce nгo pode destrancar esse veнculo!");
static
Int,
P
;
for(Int = 0, P = GetMaxPlayers(); Int != P; ++Int){
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),Int, 0, 0);
}
SendClientMessage(playerid, verde, "VEICULO DESTRANCADO.");
return true;
}