05.04.2009, 22:54
car kick does not work
05.04.2009, 22:55
So they get kicked for entering a car?, Then why even add that car?
![Shocked](images/smilies/surprised.gif)
05.04.2009, 22:59
i dont, but im trying to make an a/c here.
06.04.2009, 01:08
you should define which state they change to.
also you need to toggle them uncontrolable before you kick them or I dont think it will make them uncontrollable.
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == 2)
{
//do the stuff here.
}
return 1;
}
06.04.2009, 01:23
Quote:
Originally Posted by Kinetic
you should define which state they change to.
pawn Код:
|
{
if(newstate == 2)
{
You Got Kicked Out Of The Server Because You Entered This Car!
}
return 1;
}
[/pawno]
06.04.2009, 01:29
code still does nothing
Код:
public OnPlayerStateChange(playerid,newstate,oldstate) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); new vm = GetVehicleModel(playerid); if (newstate == 2) { if (vm == 520 || vm == 425) { TogglePlayerControllable(playerid,false); TextDrawShowForPlayer(playerid,Textdraw2); Kick(playerid); } } }
06.04.2009, 01:33
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if (newstate == PLAYER_STATE_DRIVER)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new v = GetVehicleModel(playerid);// Is this meant to be Vehicle ID not Model?
if (v == 520 || v == 425)
{
TogglePlayerControllable(playerid,0);
TextDrawShowForPlayer(playerid,Textdraw2);
Kick(playerid);
}
}
}
06.04.2009, 08:37
Just so you know, if you kick the player from the server, the text draw is gonna disapear... the only thing you really got on disconnect that the player will see is the SendClientMessage.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)