Originally Posted by Masterakio
Hello! I have 2 Questions The first is: I have the Original Sa-mp Server But how cann i delete the Yellow Icons that are for example for the lspd are. And the second ist how can i make that when i go into a lspd car check the skin id an when its not the right skin id eject the player Sorry for my bad english ! I hope you can help me |
new Model=GetVehicleModel(vehicleid);
if(model==596)
{
if(GetPlayerSkin(playerid)=288)
{
return 1;
}
SendClientMessage(playerid,red,"You are not a Police Officer.");
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Originally Posted by Masterakio
Thanks DisableInteriorEnterExits(1); Works but there came a warning with the text:number of arguments does not match definition How can i fix that?
|
DisableInteriorEnterExits();
test.pwn(184) : error 017: undefined symbol "model"
test.pwn(186) : warning 211: possibly unintended assignment
test.pwn(186) : error 022: must be lvalue (non-constant)
est.pwn(186) : warning 215: expression has no effect
test.pwn(186) : error 001: expected token: ";", but found ")"
test.pwn(186) : error 029: invalid expression, assumed zero
test.pwn(186) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
new Model=GetVehicleModel(vehicleid); if(Model == 596) { if(GetPlayerSkin(playerid) == 288) { return 1; } SendClientMessage(playerid,red,"You are not a Police Officer."); RemovePlayerFromVehicle(playerid); } return 1; }
forward Eject(playerid,vehicleid);
public Eject(playerid, vehicleid)
{
new Model=GetVehicleModel(vehicleid);
if(Model == 596 && GetPlayerSkin(playerid)==288)
{
SendClientMessage(playerid,green,"");
}
else
{
SendClientMessage(playerid,red,"You are not a Police Officer.");
RemovePlayerFromVehicle(playerid);
}
return 1;
}