SA-MP Forums Archive
Dynamic cp only for one player. - 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: Dynamic cp only for one player. (/showthread.php?tid=396696)



Dynamic cp only for one player. - PaulDinam - 01.12.2012

When i make dynamic CP only for one player it shows for everyone./.


Re: Dynamic cp only for one player. - dr.lozer - 01.12.2012

hmmm it is possible but it take alot of code...

there is a option in CreateDynamicCP and named playerid = -1.. you must change it


Re: Dynamic cp only for one player. - PaulDinam - 01.12.2012

i have this.

but still doesn't works
HouseEnter[i][playerid] = CreateDynamicCP(HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez], 1.5, -1, -1, -1, 100.0);


Re: Dynamic cp only for one player. - PaulDinam - 01.12.2012

it's good?
HouseEnter[i][playerid] = CreateDynamicCP(HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez], 1.5, -1, -1, playerid, 100.0);

it works thanks!