22.02.2010, 14:43
I have this now:
No error's, warn's But now u can use it when u are not in a vehicle
Who can make it that there's coming a text with: "U need to be in a vehicle to use this!"
Код:
if(strcmp(cmdtext, "/vr", true) == 0) { if(IsPlayerVipMember(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); RepairVehicle(GetPlayerVehicleID(playerid)); } else SendClientMessage(playerid, COLOR_RED, "ERROR: You are not a Vip Member!"); return 1; }
Who can make it that there's coming a text with: "U need to be in a vehicle to use this!"