how do I make it for one player to put it on another player?
Code
Code
Code:
CMD:Wheelchair(playerid, params[])
{
new string[128], plid;
if(sscanf(params, "d", plid))return SendClientMessageEx(playerid, COLOR_WHITE, "Utiliza: /Wheelchair (playerid)");
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[playerid]=1;
}
return 1;
}