Код:
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;
}
PHP код:
CMD:Wheelchair(playerid, params[])
{
new string[128], plid;
if(sscanf(params, "d", plid)) return SendClientMessage(playerid, -1 "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;
}