07.01.2013, 20:34
Hey, im trying to see if the vehicle you enter is your vehicle. Doesnt send a message at all even if i am not the owner
And i am setting the vehicle you just bought owned before you ask
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
new Vehicleid = GetPlayerVehicleID(playerid);
if(VehicleInfo[Vehicleid][owned] == true && strcmp(VehicleInfo[Vehicleid][owner], PlayerName(playerid), true))
{
SendClientMessage(playerid, -1, "This is your vehicle");
}
}
return 1;
}