08.08.2010, 19:10
Hi, i want to give a car to players when they write its name. I mean, if a player types "Infernus", an infernus will spawn in front of him. But, for sure, we need to use GetVehicleModelIDFromName when doing it... how can i realize that?
here is GetVehicleModelIDFromName code:
here is GetVehicleModelIDFromName code:
pawn Код:
GetVehicleModelIDFromName(vname[])
{
for(new i = 0; i < 211; i++)
{
if(strfind(VehicleNames[i], vname, true) != -1)
return i + 400;
}
return -1;
}