setting a timer with playerpos - 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: setting a timer with playerpos (
/showthread.php?tid=181654)
setting a timer with playerpos -
WillyP - 06.10.2010
i have pickups, but i dont want them to be abused
i thought of
settimer ect
then onplayerpickuppickup
and if the dude kept going over the pickups, they would get a kick, but i have no clue how to do it cause that doesnt look correct to me
Re: setting a timer with playerpos -
Crashty - 06.10.2010
Simply use this:
CreatePickup(model,3,X,Y,Z,virtualworld);
Using 3 in type will make the player see the pickup again after he respawns, So he can get it only once a life.
For more info check this
https://sampwiki.blast.hk/wiki/PickupTypes
Re: setting a timer with playerpos -
WillyP - 06.10.2010
Quote:
Originally Posted by Crashty
Simply use this:
CreatePickup(model,3,X,Y,Z,virtualworld);
Using 3 in type will make the player see the pickup again after he respawns, So he can get it only once a life.
For more info check this https://sampwiki.blast.hk/wiki/PickupTypes
|
i need the pickups to stay there
but i thought of destroy pickup then set a timer
Re: setting a timer with playerpos -
Scenario - 06.10.2010
I think it would stay there for the other players, but I'm not too sure. I only use pickups for houses, businesses and entrances. Not really to get life, etc.
Re: setting a timer with playerpos -
Crashty - 06.10.2010
It will disappear for who ever picked it up, Other players can see it..
Re: setting a timer with playerpos -
Tommie1331 - 06.10.2010
if you want set max pick up per player per hour i can help but i need to know exatly what you mean i can help because i have max pick up 10 per hour over a 5 min timer bettwenn pick up so you only allowed one every 5 mins and 10 in a hour if you wish and tell me every thing you want it to do ill script it for you