27.03.2011, 19:56
is the ispassenger variable from onplayer enter/exit vehicle a boolean? if so, y dont this work? CODE:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == ccar)
{
if(!ispassenger = true)
{
new string[64], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has taken the chasecar!", name);
SendClientMessageToAll(COLOR_RED, string);
}
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(vehicleid == ccar)
{
if(!ispassenger = true)
{
new string[64], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has left the chasecar!", name);
SendClientMessageToAll(COLOR_RED, string);
}
}
return 1;
}