23.04.2012, 18:09
Change this:
for this:
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
TuneVehicleRandomly(vehicleid);
return SendClientMessage(playerid,-1,"Your car has been tuned.");
return 1;
}
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)){
TuneVehicleRandomly(GetPlayerVehicleID(playerid));
SendClientMessage(playerid,-1,"Your car has been tuned.");
return 1;
} else return SendClientMessage(playerid, 0xFF0000FF, "You are not in a car."),1;
}