04.12.2014, 09:57
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?
How can I do that?
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
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);
}
}
you can use streamer plugin by Incognito
https://sampforum.blast.hk/showthread.php?tid=102865 pawn Код:
pawn Код:
|
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 |