SA-MP Forums Archive
i need help scripting another CMd of wheels Changing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i need help scripting another CMd of wheels Changing (/showthread.php?tid=453902)



i need help scripting another CMd of wheels Changing - amitdahari - 26.07.2013

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?


Re: i need help scripting another CMd of wheels Changing - Vanter - 26.07.2013

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;




Re: i need help scripting another CMd of wheels Changing - amitdahari - 26.07.2013

And what it would be for the Shadows Rims?


Re: i need help scripting another CMd of wheels Changing - Vanter - 26.07.2013

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




Re: i need help scripting another CMd of wheels Changing - amitdahari - 26.07.2013

Comment Removed.