SA-MP Forums Archive
Help| Come in .. - 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: Help| Come in .. (/showthread.php?tid=64125)



Help| Come in .. - Benlollol1 - 02.02.2009

Hello.

I Need help..
I Want, When someone get in police car
Its Auto Eject him and tell him ''This Car Belongs to FBI''
Something like it..
Please help me....!
Thanks.


Re: Help| Come in .. - ICECOLDKILLAK8 - 02.02.2009

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pd car id)
{
if(whatever defines them as a cop e.g. !IsACop(playerid))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, w/e color, "This car belongs to the FBI");
}
}
}
return 1;
}
Should work, I wrote it in this box so sorry about the indentation



Re: Help| Come in .. - Benlollol1 - 02.02.2009


public OnPlayerStateChange(playerid, newstate, oldstate)
I Do it and i get a Erors..



{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
{
if(whatever defines them as a cop e.g. !IsACop(playerid))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, w/e color, "This Car Belongs to Los Santos Police Department");
}
}
}


This is the erors

C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1749) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1774) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1794) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1799) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1863) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1867) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1879) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1883) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1887) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1891) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1895) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1899) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1903) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1915) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1919) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1923) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1927) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1931) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1943) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1947) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1951) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1963) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(1967) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(2220) : error 004: function "SendIRCMessage" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(2242) : error 004: function "SendIRCMessage" is not implemented
C:\Documents and Settings\Ben\Desktop\10\ъйчйд згщд\gamemodes\MSRP.pwn(2254) : error 004: function "SaveCK" is not implemented




Re: Help| Come in .. - SilentMouse - 02.02.2009

Seriously? Did you just copy and paste code from above? If you did, then you need to learn some basics.


Re: Help| Come in .. - baxi - 06.07.2009

i need that script to , when non-cop enters a car he need eject then

But when i add that script have i errors to :S Someone FS of it?


Re: Help| Come in .. - ByFukara - 06.07.2009

onplayerentervehicle


Re: Help| Come in .. - baxi - 06.07.2009

can some on put it in a filterscript for me?

Everytime i have errors


Re: Help| Come in .. - -Sneaky- - 06.07.2009

Check here: http://forum.sa-mp.com/index.php?top...2571#msg682571 maby it will help you.