25.09.2012, 13:51
Hey i made a CMD to give GoldRimes and CutterRimes I want only admin's can use that , How can I do that? SOmone can write here with code ? :
Код:
CMD:givegr(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid),1080); SendClientMessage(playerid, 0xFFFFFFFF, "You have added Gold Rims to your vehicle."); return 1; } CMD:givecr(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid),1079); SendClientMessage(playerid, 0xFFFFFFFF, "You have added Cutter Rims to your vehicle."); return 1; }