Need little help with pickup please.
#1

Well i made a pickup for something for my server but i need
some help.I created that you when you stand in pickup there
is a message but how do i make if admin stands in pickup there
is nothing showing but for other players it will show that they
stand in it.

I would appreciate it if you could help me
Reply
#2

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickupid)
  {
     if(!IsPlayerAdmin(playerid))
     {
       SendClientMessage(playerid,Color,"Message :P");
     }
  }
  return 1;
}
It also depends on your admin system,IsPlayerAdmin checks if a player is connected to RCON,for example in LAdmin it's IsPlayerLAdmin(playerid) ..
Reply
#3

No that is not that what i want.
I want that when admin stands in pickup nothing shows no any messages or something
but when normal players stands it is showing messages.
Reply
#4

Quote:
Originally Posted by McX-7[wЂstSidЂ
]
No that is not that what i want.
I want that when admin stands in pickup nothing shows no any messages or something
but when normal players stands it is showing messages.
So what is it different from what i gave you?
Reply
#5

Quote:
Originally Posted by O_x
Quote:
Originally Posted by McX-7[wЂstSidЂ
]
No that is not that what i want.
I want that when admin stands in pickup nothing shows no any messages or something
but when normal players stands it is showing messages.
So what is it different from what i gave you?
No you gave me that when admin stands in pickup is is showing this message
Quote:

"Message :P");

Reply
#6

Quote:
Originally Posted by McX-7[wЂstSidЂ
]
Quote:
Originally Posted by O_x
Quote:
Originally Posted by McX-7[wЂstSidЂ
]
No that is not that what i want.
I want that when admin stands in pickup nothing shows no any messages or something
but when normal players stands it is showing messages.
So what is it different from what i gave you?
No you gave me that when admin stands in pickup is is showing this message
Quote:

"Message :P");

No he didn't notice the script:

Код:
if(!IsPlayerAdmin(playerid))
notice the !
Reply
#7

What is different if i put this !
Reply
#8

And I'm sure that even if O_x didn't post the '!', you could be able to add it yourself.

Quote:
Originally Posted by McX-7[wЂstSidЂ
]
What is difference if it is this !
'!' check if a function returns 0.

pawn Код:
if(IsPlayerAdmin(playerid)) //Checks if the player IS an admin
if(!IsPlayerAdmin(playerid)) //Checks if the player ISN'T an admin
Reply
#9

No you dont understand.
I created a command that when admin types create pickup
it creates a pickup at there where he stands.But i dont want
that when he creates a pickup that is saying a message that
should appear when other players stand in that pickup.
Reply
#10

Don't think I get you? The code with "!" seems to fix your problem if you ask me but else I just don't understand you if you want it another way.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)