28.12.2014, 06:43
Hey guys, I've been editing the newest release of Cops and Robbers for my server, and I can't get this thing to work, I've learnt a lot about pawno, but I just can't get this to work, could use some help..
It appears to be ok for me, but when someone else enters someone's vehicle, he doesn't get ejected, so he can drive it as if it was his.
What can I do? Is there something wrong?
And the strangest part is that it displays the string ("This vehicle is owned by %s."), it just doesn't eject playerid from the said vehicle..
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { GetPlayerLastVehicleID[playerid] = vehicleid; new string[150]; if(!ispassenger) { if(IsShopVehicle[vehicleid] != -1) { if(strcmp(GetName(playerid), VehicleInfo[IsShopVehicle[vehicleid]][vOwner], false)) { format(string, sizeof(string), "This vehicle is owned by %s.", VehicleInfo[IsShopVehicle[vehicleid]][vOwner]); SendClientMessage(playerid, RED, string); RemovePlayerFromVehicle(playerid); } } } return 1; }
What can I do? Is there something wrong?
And the strangest part is that it displays the string ("This vehicle is owned by %s."), it just doesn't eject playerid from the said vehicle..