28.02.2010, 11:00
What i'm doing wrong ?
Quote:
public PlayerCheck(playerid) { for(new i=0;i<MAX_PLAYER;i++) { if(IsPlayerConnected(i)) { if(IsPlayerInAnyVehicle(i)) { new vehicleid = GetPlayerVehicleID(i); new exit=0; new Float, Float:y, Float:z; GetPlayerPos(i, x, y, z); if(GetVehicleModel(vehicleid) == 432) { if(GetPlayerRank(playerid) == 3) { GameTextForPlayer(i, "~w~Rank: ~b~Private 2st Class~r~ needed~w~!", 2000, 3); denied = 1; } } if(exit == 1) { SetPlayerPos(i, x, y, z+1); RemovePlayerFromVehicle(i); } } } } return 1; } |