17.10.2013, 17:22
Hi. Thanks for the anwser.
That didn't work...
I put that like this on my gamemode:
Thanks!
That didn't work...
I put that like this on my gamemode:
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new arroz = INVALID_VEHICLE_ID;
new carro = GetPlayerVehicleID(playerid);
for(new i = 0; i != sizeof(iCarInfo); ++i)
{
if(iCarInfo[i][cID] == carro)
{
arroz = carro;
break;
}
}
//if(arroz == iPlayerInfo[playerid][Chave1] || arroz == iPlayerInfo[playerid][Chave2] || arroz == iPlayerInfo[playerid][Chave3] || arroz == iPlayerInfo[playerid][Chave4] || arroz == iPlayerInfo[playerid][ChaveEmp1] || arroz == iPlayerInfo[playerid][ChaveEmp2] || arroz == iPlayerInfo[playerid][ChaveEmp3])
if(arroz == INVALID_VEHICLE_ID)
{
SendClientMessage(playerid, -1, "This is your car");
}
else
{
RemovePlayerFromVehicle(playerid);
}
}