02.01.2012, 15:02
I edited one function into this:
After that my one Filterscript bugged. I wrote command /apsaugoti 1, same with /nepasaugoti 1 (1 is player id for ex.)
A command text is bugged. I tryed to mark this function with slash: //
It's not helped. If what its a link for this FS: http://www.mediafire.com/?a48e5jk53hsrq4q
P.S that FS don't have errors and another thing my NPC bot stopped to join into server.
Problem is, my FS and NPC bot stopped to work.
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
{
If they got into a car from being on foot.
if( GetVehicleModel(GetPlayerVehicleID( playerid )) == 428 )
{
if( GetPlayerSkin(playerid) != 27 )
{
If their skin is not 27
Remove them and send message.
RemovePlayerFromVehicle( playerid );
SendClientMessage( playerid,0xFF000000, "Noredami vairuoti si transporta turite buti elektriku" ); -1
return 1;
}
else
{
SendClientMessage(playerid, 0xFF000000, "Atsisedote i transporta. Jeigu dirbate, tada dirbkite savo darba");
return 1;
}
}
}
return 1;
}
A command text is bugged. I tryed to mark this function with slash: //
It's not helped. If what its a link for this FS: http://www.mediafire.com/?a48e5jk53hsrq4q
P.S that FS don't have errors and another thing my NPC bot stopped to join into server.
Problem is, my FS and NPC bot stopped to work.


