25.01.2011, 13:49
pawn Code:
public OnPlayerConnect(playerid)
{
static str[128];
Loop(h, MAX_VEHICLES)
{
format(file,sizeof(file),local,h);
if(dini_Exists(file)) // I'm using dini in this cas
{
if(!strcmp(GetMyName(playerid), dini_Get(file,"Name"), true)) // Would search on all files
{
format(str,sizeof(str),""#red"[CAR SYSTEM]: "#green"Hello %s. You own a vehicle model %i. Your vehicle ID is: %i", // I didn't end here yet.
Player[playerid][Owner] = 1;
//Just add your code here, the variable which stores the number is h
}
}
}
return 1;
}