15.01.2013, 20:44
do it like this
pawn Код:
if(strcmp("/fixcar", cmdtext, true, 7) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_YELLOW,"You must be inside vehicle to use this command!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFFFF, "Your car has been repaired.");
return 1;
}