17.07.2011, 03:24
Quote:
^That wont work. Mine is corrected:
Код:
if(strcmp(cmdtext, "/vr", true) == 0) { if(!IsPlayerVipMember(playerid)) return SendClientMessage(playerid,red,"Only Vip's Can Repair Their Vehicles."); else { if(IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SetVehicleHealth(vehicleid,1000.0); SendClientMessage(playerid,Green1, "Vehicle fixed."); } else { SendClientMessage(playerid,red, "You are not in a vehicle!"); } } } return 1; } |
btw how can i make
Код:
if(strcmp(cmdtext, "/vr", true) == 0) { if(!IsPlayerVipMember(playerid)) return SendClientMessage(playerid,red,"Only Vip's Can Repair Their Vehicles."); else { if(IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SetVehicleHealth(vehicleid,1000.0); SendClientMessage(playerid,Green1, "Vehicle fixed."); } else { SendClientMessage(playerid,red, "You are not in a vehicle!"); } } } return 1; }
Admin check=
Код:
if (IsPlayerLuxAdm(playerid))