10.02.2013, 20:58
Quote:
It's not much...made it in like 5 minutes...but I guess it can be quite useful
Код:
#define COLOR_YELLOW 0xFFFF00AA //<--Incase you don't have yellow defined, add it to the top of your script with all your other definitions CMD:arims(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= changeme) //Change this to whatever you use { if(isnull(params)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arims [rim model]"); SendClientMessage(playerid, COLOR_GRAD1, "Rim Models: Cutter, Switch, OffRoad, Shadow, Mega, Rimshine, Wire"); return 1; } if(strcmp(params,"cutter",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed Cutter Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1079); } else if(strcmp(params,"switch",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed Switch Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1080); } else if(strcmp(params,"offroad",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed OffRoad Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1026); } else if(strcmp(params,"shadow",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed Shadow Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1073); } else if(strcmp(params,"mega",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed Mega Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1074); } else if(strcmp(params,"rimshine",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed Rimshine Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1075); } else if(strcmp(params,"wire",true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You have placed Wire Rims on this vehicle."); AddVehicleComponent(GetPlayerVehicleID(playerid), 1076); } } else { SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!"); } return 1; } |
pawn Код:
PlayerInfo[playerid][pAdmin] >= changeme