How to create pickup only for player who got for ex. 500xp?
#1

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?
Reply
#2

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
Reply
#3

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
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)