26.01.2013, 18:46
pawn Код:
if(strcmp("/roubarcarro", cmdtext, true) == 0)
{
new carid;
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1193.1158,-1274.9397,13.5469))
{
if(HireCar[playerid] == carid && !SwitchKey[playerid] && VTrancado[carid] == 1 ||)
{
GameTextForPlayer(playerid, "Carro Roubado", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
VTrancado[carid] = 0;
UnLockCar(carid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= -4000.00 && X <= -944.00 && Y <= 2900.00 && Y >= -4000.00)
{
SetPlayerCheckpoint(playerid, -2196.9966,-231.6548,35.1900,6.0); // San Fierro
roubado[playerid]=1;
SendClientMessage(playerid,verde, "Vocк Acabou de Roubar um Veiculo, Level Ele Atй o Ponto Marcado no Mapa !");
SetPlayerCriminal(playerid,255, "Roubo de Carro");
}
if(X >= -944.00 && X <= 4000.00&& Y <= 2900.00 && Y >= 475.00)
{
SetPlayerCheckpoint(playerid, 1052.8247,2192.0022,10.8203,6.0); // Las Venturas
roubado[playerid]=1;
SendClientMessage(playerid,verde, "Vocк Acabou de Roubar um Veiculo, Level Ele Atй o Ponto Marcado no Mapa !");
SetPlayerCriminal(playerid,255, "Roubo de Carro");
}
if(X >= -944.00 && X <= 4000.00&& Y <= 475.00 && Y >= -4000.00)
{
SetPlayerCheckpoint(playerid, 2695.9983,-2225.9236,13.5501,6.0); // Los Santos
roubado[playerid]=1;
SendClientMessage(playerid,verde, "Vocк Acabou de Roubar um Veiculo, Level Ele Atй o Ponto Marcado no Mapa !");
SetPlayerCriminal(playerid,255, "Roubo de Carro");
}
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"Vc nгo esta em um veiculo");
for(new i=0; i < MAX_PLAYERS; ++i)
{
if(i == playerid) continue;
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,0);
}
return 1;
}
return 0;
}