Need little help with pickup please. -
wEstSidЂ - 08.06.2010
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
Re: Need little help with pickup please. -
[XST]O_x - 08.06.2010
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) ..
Re: Need little help with pickup please. -
wEstSidЂ - 08.06.2010
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.
Re: Need little help with pickup please. -
[XST]O_x - 08.06.2010
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?
Re: Need little help with pickup please. -
wEstSidЂ - 08.06.2010
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
Re: Need little help with pickup please. -
oliverrud - 08.06.2010
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
|
No he didn't notice the script:
Код:
if(!IsPlayerAdmin(playerid))
notice the !
Re: Need little help with pickup please. -
wEstSidЂ - 08.06.2010
What is different if i put this !
Re: Need little help with pickup please. -
Hiddos - 08.06.2010
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
Re: Need little help with pickup please. -
wEstSidЂ - 08.06.2010
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.
Re: Need little help with pickup please. -
oliverrud - 08.06.2010
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.