SA-MP Forums Archive
[Help] Random playerid - 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: [Help] Random playerid (/showthread.php?tid=105584)



[Help] Random playerid - Dirty_bum - 30.10.2009

Hello! i am really confused
i want to get a random playerid and Create a explosion on them and send a message to them i tryed this

pawn Код:
new randomid = random(Slots), Float:x,Float:y,Float:z;
SendClientMessage(randomid, 0xFFFFFFFF, "Test");
GetPlayerPos(randomid, x, y, z);
CreateExplosion(x, y, z, 11, 10);
but the message could be for any random id not the one getting the explosion
or the code could be a fail itself
i just dont know how

Any help?

Thanks


Re: [Help] Random playerid - Dirty_bum - 31.10.2009

Sorry for double posting

Anyone have a clue??

i really need help