3 Questions
#1

1. Whats the function that loops through all the players?

2. Does anyone have the vehicles enum that has all the vehicle names plus ids?

3. Does anyone have zones.inc and the function that locates their position and figures out the zone they are in?
Reply
#2

loop
pawn Код:
for(new i; i<= MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
    }
}
however i don't have the other 2
Reply
#3

One is better than none
Reply
#4

1. for(new i = 0; i <= GetMaxPlayers(); i++)
{

}

2. http://pastebin.com/dqGfwYmu (Made by Seif_)

3. http://pastebin.com/uRsawzE2
Reply
#5

Whats the function of the vehicles enum to get the name? I cant figure out how that goes :/
Reply
#6

Код:
GetVehicleModelIDFromName(vname[]) //Made by Seif_
{
	for(new i = 0; i < 211; i++)
	{
		if(strfind(vehNames[i], vname, true) != -1)
		return i + 400;
	}
	return -1;
}
Reply
#7

Thats the reverse of what i want, i want the Vehicle name from model, not model from vehicle name.
Reply
#8

Subtract 400 from the vehicle ID. ID 0 in the array will be vehicle 400, ID 1 will be vehicle 401, etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)