[HELP] I not know how add it - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] I not know how add it (
/showthread.php?tid=93549)
[HELP] I not know how add it -
_ERO_ - 25.08.2009
I have this
pawn Код:
dcmd_paintjob(playerid,params[])
{
if(PlayerData[playerid][AdminLevel] == 4)
{
#pragma unused params
new veh;
veh = GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(veh,0);
SendClientMessage(playerid,COLOUR_YELLOW,"PaintJob Apply!");
return true;
}
else return SendClientMessage(playerid, COLOUR_WHITE, "SERVER: Unknow command.");
}
Is /painjob and apply the id 0 in car no? is easy... but i want make this /paintjob (id) id from the paint job, and i not know how make it.
Can someone help me pls?
Re: [HELP] I not know how add it -
Joe Staff - 25.08.2009
pawn Код:
dcmd_paintjob(playerid,params[])
{
if(PlayerData[playerid][AdminLevel] == 4)
{
//#pragma unused params//Remove This
new veh;
veh = GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(veh,strval(params));//Change "ChangeVehiclePaintjob(veh,0);" to "ChangeVehiclePaintjob(veh,strval(params));"
SendClientMessage(playerid,COLOUR_YELLOW,"PaintJob Apply!");
return true;
}
else return SendClientMessage(playerid, COLOUR_WHITE, "SERVER: Unknow command.");
}
Do a search on wiki.sa-mp.com for the 'strval' function.
Re: [HELP] I not know how add it -
_ERO_ - 25.08.2009
Ok! Thanks!