check if a player is freezed and make weapon pickup - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: check if a player is freezed and make weapon pickup (
/showthread.php?tid=152992)
check if a player is freezed and make weapon pickup -
Jonni8 - 06.06.2010
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?
Re: check if a player is freezed and make weapon pickup -
Jakku - 06.06.2010
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);
Re: check if a player is freezed and make weapon pickup -
Jonni8 - 06.06.2010
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.
Re: check if a player is freezed and make weapon pickup -
Backwardsman97 - 06.06.2010
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;
|
Re: check if a player is freezed and make weapon pickup -
Jakku - 06.06.2010
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.
Re: check if a player is freezed and make weapon pickup -
Jonni8 - 06.06.2010
But Please help me with first part too...
Re: check if a player is freezed and make weapon pickup -
Jonni8 - 06.06.2010
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);
...
Re: check if a player is freezed and make weapon pickup -
Jonni8 - 06.06.2010
please
Re: check if a player is freezed and make weapon pickup -
Jonni8 - 07.06.2010
BUMP
Re: check if a player is freezed and make weapon pickup -
Backwardsman97 - 07.06.2010
Basically how you just said. Move it, set a timer, and move it back.