i need help scripting another CMd of wheels Changing
#1

Well i got this script of changing wheels cmd
Quote:

CMD:gr(playerid, params[]) {
return cmd_goldrims(playerid, params);
}

CMD:goldrims(playerid, params[])
{
if(IsPlayerConnected(playerid)) {
if(PlayerInfo[playerid][pAdmin] < 1) {
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid)) {
AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
SendClientMessageEx(playerid, COLOR_GREY, " Gold Rims Added to Vehicle!");
}
}
return 1;
}

And i wanted to add another command that installs Cutter rims Could anyone help me?
Reply
#2

PHP код:
CMD:cutterrims(playeridparams[])
{
if(
IsPlayerConnected(playerid)) {
if(
PlayerInfo[playerid][pAdmin] < 1) {
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!");
return 
1;
}
if(
IsPlayerInAnyVehicle(playerid)) {
AddVehicleComponent(GetPlayerVehicleID(playerid), 1079);
SendClientMessageEx(playeridCOLOR_GREY" Cutter Rims Added to Vehicle!");
}
}
return 
1;

Reply
#3

And what it would be for the Shadows Rims?
Reply
#4

https://sampwiki.blast.hk/wiki/Car_Component_ID
PHP код:
CMD:shadowrims(playeridparams[]) 

if(
IsPlayerConnected(playerid)) { 
if(
PlayerInfo[playerid][pAdmin] < 1) { 
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!"); 
return 
1

if(
IsPlayerInAnyVehicle(playerid)) { 
AddVehicleComponent(GetPlayerVehicleID(playerid), 1073); 
SendClientMessageEx(playeridCOLOR_GREY" Shadow Rims Added to Vehicle!"); 


return 
1

Reply
#5

Comment Removed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)