No ID 0
#1

Hello,

I've got a question:
Is there a way that people can't connect on ID 0 because if I use /cuff that ID always gets cuffed too.
Reply
#2

No, fix your script instead.
Reply
#3

You can check if player's id is 0 when he connects but that's stupid.. When you start your server someone has to connect first, and that someone will have id 0. Like 0rb said, fix your cuff command or find another one (and learn to script too).
Reply
#4

I dont think you can do that.
Reply
#5

Don Correlli,
Have respect for newbs. I am learning pawn.. I've made this /cuff command by myself. So I'm proud of myself for that..
http://pastebin.com/m34bd1be
Reply
#6

Quote:
Originally Posted by Remba
I dont think you can do that.
pawn Код:
public OnPlayerConnect(playerid)
{
if(playerid == 0)
{
// code..
}
return 1;
}
That wouldn't work?
Reply
#7

Then the person of ID 0 will be alowed to use the cuff?
Reply
#8

Quote:
Originally Posted by Don Correlli
pawn Код:
public OnPlayerConnect(playerid)
{
if(playerid == 0)
{
// code..
}
return 1;
}
That wouldn't work?
And now, what "code" ?
There ain't no function such as "SetPlayerID". Just fix the script.
Reply
#9

Yeah but I need help with fixing it but no one wants to help xD
Reply
#10

Quote:
Originally Posted by //exora
And now, what "code" ?
There ain't no function such as "SetPlayerID". Just fix the script.
Anything you want, Kick(playerid); as an example. But like i said:
Quote:
Originally Posted by Don Correlli
You can check if player's id is 0 when he connects but that's stupid.. When you start your server someone has to connect first, and that someone will have id 0. Like 0rb said, fix your cuff command or find another one (and learn to script too).
Quote:
Originally Posted by Joeri
Yeah but I need help with fixing it but no one wants to help xD
Contact me on msn, i'll make you one.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)