04.12.2013, 16:00
Try this:
pawn Код:
enum VehicleInfo
{
VID,
model,
vOwned,
vOwner,
Float:SpawnPos[4],
Lock,
vcolor1,
vcolor2,
carro
};
//=========================================//
InVehicle[playerid] = GetPlayerVehicleID(playerid);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(newstate == PLAYER_STATE_DRIVER)
{
if(vInfo[InVehicle[playerid]][vOwned] == 0)
{
SendClientMessage(playerid, COLOR_ADMIN, "PROBANDO SIN DUEN~O");
}
else if(vInfo[InVehicle[playerid]][vOwned] == 1)
{
if(strcmp(pName, vInfo[InVehicle[playerid]][vOwner], true))
{
SendClientMessage(playerid, COLOR_ADMIN, "PROBANDO CON DUEN~O");
}
}
}