21.12.2009, 23:55
Ok, I know ive done this wrong, But i dont know how to fix it,
So could if you dont mind correct me,
So could if you dont mind correct me,
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle >= privatevehicle[0] && Vehicle <= privatevehicle[99])
{
new playerskin;
playerskin = GetPlayerSkin(playerid);
if(playerskin == 280)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, "This car is property of San Fierro Police Department");
}
}
}
return 1;
}