little help
#1

hello i have this command and evrything is fine

pawn Код:
CMD:get(playerid,params[])
{
  new pID, Float:pX, Float:pY, Float:pZ, pIDvehicle;
  if(!IsPlayerAdmin(playerid)) return MSG(playerid,RED,"UnKnown Command! Type /help");
  if(sscanf(params, "u", pID)) return MSG(playerid,RED,"Get a player: /get <playerid>");
  if(!IsPlayerConnected(pID))return MSG(playerid,RED,"Player is not connected");
  if(GetPlayerState(pID) == PLAYER_STATE_DRIVER)
  {
    pIDvehicle = GetPlayerVehicleID(pID);
    SetVehiclePos(pIDvehicle, pX, pY+1, pZ);
  }
  if(pID == playerid) return MSG(playerid, RED, " ");
  GetPlayerPos(playerid, pX, pY, pZ);
  SetPlayerPos(pID, pX, pY+1, pZ);
  return 1;
 
}
and i want if the pID was playerid the cmd dont work and without send to the playerid any message i do this but i ask if there other way to do that

pawn Код:
if(pID == playerid) return MSG(playerid, RED, " ");
Reply
#2

If you teleport yourself to your position, then I don't think it will do anything as you will teleport yourself to your own coordinates, right?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)