03.02.2014, 17:42
Ja tem...
pawn Код:
if(PRESSED(KEY_CROUCH))
{
if(IsPlayerInAnyVehicle(playerid)) return 0;
if(PInfo[playerid][SPerk] == 11)
{
if(Team[playerid] == ZOMBIE) return 0;
new Float:x,Float:y,Float:z,id;
id = -1;
for(new i; i < MAX_VEHICLES;i++)
{
GetVehiclePos(i,x,y,z);
if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z))
{
id = i;
break;
}
else continue;
}
if(id == -1) return 0;
static Float:health;
GetVehicleHealth(id,health);
if(health >= 500.0) return SendClientMessage(playerid,white,"» "cred"[x] Este veнculo nгo precisa de conserto!");
TurnPlayerFaceToPos(playerid, x-270, y-270);
ApplyAnimation(playerid, "CAR" , "Fixn_Car_Out" , 2.0 , 0 , 0 , 1 , 0 , 5000 , 1);
static string[100];
format(string,sizeof string,""cjam"[ > ] %s(%i) ja preparou o seu veнculo",GetPName(playerid),playerid);
SendNearMessage(playerid,white,string,20);
SetVehicleHealth(id,health+250.0);
SetTimerEx("ClearAnim",1500,false,"i",playerid);
}