[FilterScript] Comand repair vehicle don't work...
#1

Hi all, sorry if the section is wrong. I have the command to repair the vehicles in SA-MP, but don't repair, that I write /fix and send me the message Fixed Vehicle, but the car does not repair the damage left with ... know how? here's the code pawn and sorry my English i'm italian.


if ( strcmp ( cmdtext , "/fix", true)==0)
{
new State=GetPlayerState(playerid);
if (IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{

RepairVehicle(vehicleid);
SendClientMessage(playerid,COLOR_GREEN,"Vehicle Fixed!");
}
else
{
SendClientMessage(playerid,COLOR_BLUE,"You aren't in any vehicle.");
}
return 1;
}
Reply


Messages In This Thread
Comand repair vehicle don't work... - by Macros50 - 12.01.2011, 15:01
Re : Comand repair vehicle don't work... - by cristab - 12.01.2011, 15:04
Re: Comand repair vehicle don't work... - by Drowzz - 12.01.2011, 15:27
Re: Comand repair vehicle don't work... - by California - 12.01.2011, 15:30
Re: Comand repair vehicle don't work... - by jordy.kiesebrink - 12.01.2011, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)