if(strcmp(cmd, "/exam", true) == 0) { if(PlayerToPoint(3.0, playerid, 1110.8450,-1798.4657,16.593) { if(PlayerInfo[playerid][pCarLic] < 1) { if(TakingDMV[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "You're already taking the test!"); } else { new DMV_PRICE = 1000; if(playercash >= DMV_PRICE){ TakingDMV[playerid] = 1; PutPlayerInVehicle(playerid, getFreeDMVcar(), 0); StartPlayerDMV(playerid); return 1; } else { format(string, sizeof(string), "You don't have %i$!", DMV_PRICE); SendClientMessage(playerid, COLOR_WHITE, string); } } } else { SendClientMessage(playerid, COLOR_WHITE, "You already have the driving license."); } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at DMV Center."); } } |
Somewhere in your script, the function, RemovePlayerFromVehicle, is getting called. I would search thescript and check everywhere that this function is getting called, one by one.
|