25.08.2012, 15:29
Hello sa-mp.com visiters! I started my own server and some players reported me about a bug in server. Then they don't work in job, they can drive this work cars and they don't get this message: SendClientMessage(playerid,0xFF0000FF,"This car only for police!");//Explained below.... And other players said that they can't do this. I think there is something wrong with function RemovePlayerFromVehicle(playerid); There is my code:
This code under callback OnPlayerStateChange. Where can be problem?
Код:
if(JobVehicle[Job1][vehicleid]) { if(Info[playerid][Job] == JOB1_JOB) { if(GetPlayerSkin(playerid) == JOB1_SKIN) { //There is some functions... } else { SendClientMessage(playerid,0xFF0000FF,"You have to wear police uniform!"); RemovePlayerFromVehicle(playerid); } } else { SendClientMessage(playerid,0xFF0000FF,"This car only for police!"); RemovePlayerFromVehicle(playerid); } }