not letting me in
#4

OnPlayerStateChange :

Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new modelid = GetVehicleModel(vehicleid);
    new Float:ppX, Float:ppY, Float:ppZ;
    GetPlayerPos(playerid, ppX, ppY, ppZ);
  
     if(modelid == 425)
	{
 		if(UserUD[playerid][rank] > 3 || UserUD[playerid][vip] == 1)
		{
		SendClientMessage(playerid,adminaction,"You entered a hunter!");
 		}
         else
	     {
          RemovePlayerFromVehicle(playerid);
		 SetPlayerPos(playerid, ppX, ppY, ppZ+2);
	     SendClientMessage(playerid,red,"You need to be a: Captain (rank 4), Before you can enter this vehicle! (If you are a V.I.P you can enter it anytime! * /vip )");
 	     }
      }
      return 1;
}
Reply


Messages In This Thread
not letting me in - by iStarzz - 12.06.2010, 16:15
Re: not letting me in - by Aleksandar_Zivanovci - 12.06.2010, 17:28
Re: not letting me in - by MadeMan - 12.06.2010, 18:49
Re: not letting me in - by aircombat - 12.06.2010, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)