17.07.2011, 00:40
EDIT: SOLVED Thanks [HiC]TheKiller
pawn Код:
554 public OnPlayerCommandText(playerid, cmdtext[])
555 {
556 if(strcmp(cmdtext, "/vr", true) == 1)
557 {
558 if(IsPlayerVipMember(playerid)) return SendClientMessage(playerid,red,"Only Vip's Can Repair Their Vehicles.");
559 {
560 if(IsPlayerInAnyVehicle(playerid))
561 {
562 new vehicleid = GetPlayerVehicleID(playerid);// gettin the vehicle id
563 SetVehicleHealth(vehicleid,1000.0);// set the vehicle health
564 SendClientMessage(playerid,Green1, "Vehicle fixed.");
565 }
566 else
567 {
568 SendClientMessage(playerid,red, "You are not in a vehicle!");
569 }
570
571 }
572 }
573 return 1;
574 }
EDIT: SOLVED Thanks [HiC]TheKiller