Help| Come in ..
#1

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

Код:
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
Reply
#3


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

Reply
#4

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

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

onplayerentervehicle
Reply
#7

can some on put it in a filterscript for me?

Everytime i have errors
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)