18.09.2011, 15:46
pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
new Float:X, Float:Y, Float:Z;
if(IsPlayerInAnyVehicle(playerid))
{
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
return 1;
}
if (!strcmp("/reparar", cmdtext))
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, -1 "Seu Veiculo Foi Reparado!");
}
else SendClientMessage(playerid,-1, "Voce nao estб no veiculo!");
return 1;
}
if(!strcmp("/nitro",cmdtext))
{
if(IsPlayerInAnyVehicle(playerid)) return NitroInfinito(playerid);
else SendClientMessage(playerid,-1,"Vocк nгo esta em um veiculo");
}
forward NitroInfinito(playerid);
public NitroInfinito(playerid)
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SetTimerEx("NitroInfinito",10000,0,"i",playerid);
return 0;
}