SA-MP Forums Archive
Yellow Going in Icons and Skin checker for Lspd Car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Yellow Going in Icons and Skin checker for Lspd Car (/showthread.php?tid=144295)



Yellow Going in Icons and Skin checker for Lspd Car - Masterakio - 26.04.2010

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



Re: Yellow Going in Icons and Skin checker for Lspd Car - Dark-Pheonix - 26.04.2010

Quote:
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
Unless the function changed, as im still getting used to 0.3
To disable the yellow markers put this under "public OnGameModeInit()"
DisableInteriorEnterExits(1);

The Second, im not sure, never had to actually use something like that.


Re: Yellow Going in Icons and Skin checker for Lspd Car - [MWR]Blood - 26.04.2010

pawn Code:
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;
}
Should work


Re: Yellow Going in Icons and Skin checker for Lspd Car - Masterakio - 26.04.2010

Thanks DisableInteriorEnterExits(1); Works but there came a warning with the text:number of arguments does not match definition How can i fix that?


Re: Yellow Going in Icons and Skin checker for Lspd Car - [MWR]Blood - 26.04.2010

Quote:
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?
Because should be
pawn Code:
DisableInteriorEnterExits();



Re: Yellow Going in Icons and Skin checker for Lspd Car - Masterakio - 26.04.2010

pawn Code:
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
That came by your Script


Re: Yellow Going in Icons and Skin checker for Lspd Car - Masterakio - 26.04.2010

Sorry for doublepost but have no one a idea?


Re: Yellow Going in Icons and Skin checker for Lspd Car - aircombat - 26.04.2010

use this :
Code:
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;
}



Re: Yellow Going in Icons and Skin checker for Lspd Car - Masterakio - 26.04.2010

Now it dont send me an error but it doesnt eject the player


Re: Yellow Going in Icons and Skin checker for Lspd Car - [MWR]Blood - 27.04.2010

pawn Code:
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;
}
tested on my script, no errors.
Idk if it works.