16.12.2009, 01:35
Fixed.. please delete thread thx
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new PlayerName[24];//
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));//Moved these two, so it only gets called when a player changes to driver!
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == admcar[0] || Vehicle == admcar[1] || Vehicle == admcar[2] || Vehicle == admcar[3])//You need to check with the "Vehicle" variable in each case!
{
if(strcmp(PlayerName,"[SP]LilGunna",true))//EDIT2: Deleted the "!"
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFB0000FF, "Get the FUCK out of LilGunna's car!");
}
}
}
return 1;
}