[HELP] stock - 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: [HELP] stock (
/showthread.php?tid=447248)
[HELP] stock -
shulk - 29.06.2013
Hello, i need to from stock get Company ID, when i go on server and type /id , in radius of Company give me ID.
I need to get TvrtkaInfo[i][xID] "i" is i think foreach, in radius of me give me id from Company, or use TvrtkaInfo[idtvrtke][xID] I also use for "i".
for(new i; i < sizeof(TvrtkaInfo); i++)
Thanks.
Re: [HELP] stock -
GODEX - 29.06.2013
I do not know what it is you actually would like, so from what i could understand, i hope this will help you
Код:
enum
{
cID,
Float:CompanyX,
Float:CompanyY,
Float:CompanyZ
}
new CompanyInformation[Info];
stock InRangeOfCompany();
{
if(IsPlayerInRangeOfPoint(playerid, CompanyInformation[Info][CompanyX], CompanyInformation[Info][CompanyY], CompanyInformation[Info][CompanyZ], 0.5))
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "Company ID: %d", CompanyInformation[Info][cID]);
return 1;
}
}
return 1;
}
Re: [HELP] stock -
shulk - 29.06.2013
Thanks
Re: [HELP] stock -
GODEX - 29.06.2013
Glad i can help you.
For your nice attitude towards me, ill give you +1 rep