lol

Započeo Trotinetaa_, Novembar 02, 2023, 05:43:42 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ubacio sam interijer zlatare i opstine, al kako da metnem da se lik spawna u njoj kad ode do markera i klikne F za ulaz ?

Citat: Aurora poslato Novembar 02, 2023, 05:43:42 PRE PODNE
ubacio sam interijer zlatare i opstine, al kako da metnem da se lik spawna u njoj kad ode do markera i klikne F za ulaz ?
[pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)[/pawn]
i tu stavis: [pawn]if( IsPlayerInRangeOfPoint( playerid, koordinate od pickupa ispred opstine )) { SetPlayerPos( playerid,koordinate od  pickupa u opstine );}
if( IsPlayerInRangeOfPoint( playerid, koordinate pickupa u opstini )) { SetPlayerPos( playerid, koordinate od pickupa ispred opstine )}[/pawn]

Citat: toncikica poslato Novembar 02, 2023, 11:50:23 PRE PODNE
[pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)[/pawn]
i tu stavis: [pawn]if( IsPlayerInRangeOfPoint( playerid, koordinate od pickupa ispred opstine )) { SetPlayerPos( playerid,koordinate od  pickupa u opstine );}
if( IsPlayerInRangeOfPoint( playerid, koordinate pickupa u opstini )) { SetPlayerPos( playerid, koordinate od pickupa ispred opstine )}[/pawn]
Takodje prvo u public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) moras stavit if(newkeys & KEY_SECONDARY_ATTACK){ ovo sto sam gore napiso }