Quote:
Originally Posted by ? ???????
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;
}
|
|
u made only lvl 3 class can't get in the vehicle and all others can if(GetPlayerRank(playerid) == 3)
________
Zoloft side effect