Yellow Going in Icons and Skin checker for Lspd Car
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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

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();
Reply
#6

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
Reply
#7

Sorry for doublepost but have no one a idea?
Reply
#8

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;
}
Reply
#9

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)