Help with a cmd
#6

Try this
pawn Код:
if(strcmp(cmd, "/portloc", true) == 0)
    {
        new Float:plocx,Float:plocy,Float:plocz;
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, plocx, plocy, plocz);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_ERROR, "Syntax: /portloc(X,Y,Z");
                return 1;
            }
            if(PInfo[playerid][AdminLevel] >= 1)
            {
                  if(GetPlayerState(playerid) == 2)
                  {
                        new tmpcar = GetPlayerVehicleID(playerid);
                        SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                  }
                  else
                  {
                        SetPlayerPos(playerid,plocx,plocy+2, plocz);
                  }
                  return 1;
            }
            else
            {
                        SendClientMessage(playerid, COLOR_ERROR, "You are not an administrator !");
            }


         }
           
       
      return 1;
    }
Reply


Messages In This Thread
Help with a cmd - by Geeboi_Mehdi - 04.04.2013, 22:34
Re: Help with a cmd - by Joshman543 - 05.04.2013, 01:10
Re: Help with a cmd - by Geeboi_Mehdi - 05.04.2013, 02:17
Re: Help with a cmd - by Pawnie - 05.04.2013, 02:44
Re: Help with a cmd - by Geeboi_Mehdi - 05.04.2013, 02:59
Re: Help with a cmd - by Azazelo - 05.04.2013, 03:05
Re: Help with a cmd - by Geeboi_Mehdi - 05.04.2013, 03:46

Forum Jump:


Users browsing this thread: 1 Guest(s)