Quote:
Originally Posted by BlackBomb
pawn Код:
if(strcmp(cmdtext, "/repair", true) == 0) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "You must be in a vehicle to repair it"); if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1607.2327, -1841.8683, 13.5116)) return SendClientMessage(playerid, 0xFF0000AA, "You are not at the Mechanic Place please get to there then /repair, use /whereismech to find the location"); RepairVehicle(GetPlayerVehicleID(playerid)); PlayerPlaySound(playerid,1133,0.0,0.0,0.0); GivePlayerMoney (playerid, -5000); SendClientMessage(playerid, 0xFFC0C0C0, "You have repaired your vehicle and paid 5,000$ for it"); return 1; }
thanks, The problem was with the parameter "playerid" , +rep
try this?
|
thanks, The problem was with the parameter "playerid" , +rep