SA-MP Forums Archive
Help Scritp - 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: Help Scritp (/showthread.php?tid=647611)



Help Scritp - LOLITO - 07.01.2018

How do I get that for a player? /Wheelchair [id]

Код:
CMD:Wheelchair(playerid, params[])
{
new string[128];
if(Team_SAMD(playerid)){
ApplyAnimation(playerid, "PED", "SEAT_IDLE", 4.1, 0, 0, 0, 1, 0, 1);
SetPlayerAttachedObject(playerid,2,1369,1,-0.276000,0.089999,-0.011999,178.699661,92.599975,3.100000,0.876001,0.734000,0.779000);
playerWheelchair[playerid]=1;
}
return 1;
}



Re: Help Scritp - DelK - 07.01.2018

PHP код:
CMD:Wheelchair(playeridparams[])
{
new 
string[128], plid;
if(
sscanf(params"d"plid)) return SendClientMessage(playerid, -"Use: /Wheelchair [id]);
if(Team_SAMD(plid)){
ApplyAnimation(plid, "
PED", "SEAT_IDLE", 4.1, 0, 0, 0, 1, 0, 1);
SetPlayerAttachedObject(plid,2,1369,1,-0.276000,0.089999,-0.011999,178.699661,92.599975,3.100000,0.876001,0.734000,0.779000);
playerWheelchair[plid]=1;
}
return 1;




Re: Help Scritp - LOLITO - 07.01.2018

Thanks +1