[HELP] stock
#1

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.
Reply
#2

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;
}
Reply
#3

Thanks
Reply
#4

Glad i can help you.

For your nice attitude towards me, ill give you +1 rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)