Ask can i do put player sit
#1

if i want player sit on chair can i do ? how to

use anim can't sit because object obstruct

Reply
#2

pawn Код:
CMD:sit(playerid, params[])
{
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_IdleB",4.0,0,0,0,1,1);
   return 1;
}
OR
Under OnPlayerCommandText
pawn Код:
If(strcmp(cmdtext,"/sit", true) == 0)
{
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_IdleB",4.0,0,0,0,1,1);
   return 1;
}
EDIT: Nvm
Reply
#3

U cant Coz there is no gap Between the 2 objest there
Reply
#4

Thankyou for all answer
Reply
#5

You could make some function that checks if a player is close to that object id and then put their coords and apply an animation so you sit on it.
for example /sitattable and that will trigger the function which will set their position "inside" the object and apply the sit animation which will make it look like you're sitting there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)