Does anybody know how to do a code such as this?
#3

pawn Код:
cmd(wanted, playerid, params)
{
   new targetid, level;
   if(sscanf(params, "dd", targetid, level)) return 0; // They didn't type the full syntax
   else
   {
      if(targetid == INVALID_PLAYER_ID) return 0; // The player they're trying to do this to isn't connected
      if(level < 0 || level > 6) return 0; // Level is too high / low
      SetPlayerWantedLevel(targetid, level);
   }
   return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)