How to create pickup only for player who got for ex. 500xp? - 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)
+--- Thread: How to create pickup only for player who got for ex. 500xp? (
/showthread.php?tid=549022)
How to create pickup only for player who got for ex. 500xp? -
Delgad0 - 04.12.2014
Hello. So as you see in the title, I don't know, is it possible to create pickup visable only for those players, who got for example 500xp?
How can I do that?
AW: How to create pickup only for player who got for ex. 500xp? -
Flori - 04.12.2014
Hmm, CreatePickup has no parameter for the playerid, so i think it can't work, but you can make for example that just players with 500xp can pick it up.
Like:
Everyone sees the pickup, but just players with 500xp can pick that pickup up.
Or use streamer plugin by Incognito. XDDD
Re: How to create pickup only for player who got for ex. 500xp? -
M4D - 04.12.2014
you can use streamer plugin by
Incognito
https://sampforum.blast.hk/showthread.php?tid=102865
pawn Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(XP[i] > 500 /*Your XP Variable here*/)
{
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, -1, -1, i /* ~~~> playerid here ("i" in loop)*/, 100.0);
}
}
Good luck
Re: How to create pickup only for player who got for ex. 500xp? -
Delgad0 - 04.12.2014
Quote:
Originally Posted by M4D
you can use streamer plugin by Incognito
https://sampforum.blast.hk/showthread.php?tid=102865
pawn Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) { if(XP[i] > 500 /*Your XP Variable here*/) { CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, -1, -1, i /* ~~~> playerid here ("i" in loop)*/, 100.0); } }
Good luck
|
Thanks a lot! +rep
Re: AW: How to create pickup only for player who got for ex. 500xp? -
Delgad0 - 04.12.2014
Quote:
Originally Posted by Flori
Hmm, CreatePickup has no parameter for the playerid, so i think it can't work, but you can make for example that just players with 500xp can pick it up.
Like:
Everyone sees the pickup, but just players with 500xp can pick that pickup up.
Or use streamer plugin by Incognito. XDDD
|
Thanks!

+rep