06.07.2015, 12:14
I also did this, under OnPlayerEnterVehicle:
pawn Код:
for(new i; i < MAX_VEHICLES; i++)
{
if(VInfo[i][ownedvehicle] == vehicleid)
{
if(i == IgracevAuto1[playerid] || VInfo[i][Locked] == 0)
{
return 1;
}
else
{
new str[128];
GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
SetPlayerPos(playerid, Poz[0], Poz[1]+2, Poz[2]+0.5);
format(str, sizeof(str), "* Vehicle is locked, owner of this vehicle is", VInfo[i][Owner]);
SCM(playerid, YELLOW, str);
return 1;
}
}
}