check if a player is freezed and make weapon pickup
#1

Hey again.

I use REL Streamer plugin to make a weaponpickup.
can i display the weapon as pickup? because there is no pickup shown but when i go to the position i get the weapon. ?

second thing:
how can i check if a player is freezed or not? so if
pawn Код:
TogglePlayerControllable(playerid, true)
?
is there any was to make a function for that?
Reply
#2

Second thing:

- There is no function pre-made to check is a player frozen or not. But, you can always create a variable:

pawn Код:
new Frozen[MAX_PLAYERS];

Frozen[playerid] = 1;
TogglePlayerControllable(playerid, 0);

Reply
#3

Quote:
Originally Posted by Jakku
Second thing:

- There is no function pre-made to check is a player frozen or not.
I know... because of that i ask how to do it.

And thanks... i'll try that out when i'm finished mapping.
Reply
#4

Quote:
Originally Posted by Jakku
Second thing:

- There is no function pre-made to check is a player frozen or not. But, you can always create a variable:

new Frozen[MAX_PLAYERS];

Freeze[playerid] = 1;

Reply
#5

Quote:
Originally Posted by Baked-Banana
Quote:
Originally Posted by Jakku
Second thing:

- There is no function pre-made to check is a player frozen or not. But, you can always create a variable:

new Frozen[MAX_PLAYERS];

Freeze[playerid] = 1;

Lol, sorry. My mistake. But he understood the idea.
Reply
#6

But Please help me with first part too...
Reply
#7

a third problem came to me...
how do i move objects?
like open a gate, wait 5 seconds and close it then?
i already tried with
pawn Код:
...
MoveObject(object, x, y+5, z, 10[i dont know how fast this is])
a timer with nothing inside to only wait 5 seconds (SetTimer("Wait", 5000, 0); )
again MoveObject(object, x, y, z, 10);
...
Reply
#8

please
Reply
#9

BUMP
Reply
#10

Basically how you just said. Move it, set a timer, and move it back.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)