SA-MP Forums Archive
Streamer:Show CP for specified players only - 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: Streamer:Show CP for specified players only (/showthread.php?tid=624361)



Streamer:Show CP for specified players only - coool - 15.12.2016

I was just working on my script but then got a problem:
The script is this: I create a cmd which will show the CP to the players who had used it.
For Ex: I Do
PHP код:
cpname CreateDynamicCP(xy,...) 
Then I THINK it will just create a CP that will be shown to all any function or anything to make CP for the one who type cmd..


Re: Streamer:Show CP for specified players only - Threshold - 15.12.2016

Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
Notice that the 7th parameter represents 'playerid'. This means that the checkpoint will show for that player specifically. When set to -1, it will show for all players.

Eg.
PHP код:
new target 8// Player ID 8
CreateDynamicCP(xyz, .playerid target); 



Re: Streamer:Show CP for specified players only - coool - 15.12.2016

Didn't noticed ever, Thanks.