No ID 0 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: No ID 0 (
/showthread.php?tid=81472)
No ID 0 -
joeri55 - 11.06.2009
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.
Re: No ID 0 -
yom - 11.06.2009
No, fix your script instead.
Re: No ID 0 -
Correlli - 11.06.2009
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).
Re: No ID 0 -
Remba - 11.06.2009
I dont think you can do that.
Re: No ID 0 -
joeri55 - 11.06.2009
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
Re: No ID 0 -
Correlli - 11.06.2009
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?
Re: No ID 0 -
joeri55 - 11.06.2009
Then the person of ID 0 will be alowed to use the cuff?
Re: No ID 0 -
woot - 11.06.2009
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.
Re: No ID 0 -
joeri55 - 11.06.2009
Yeah but I need help with fixing it but no one wants to help xD
Re: No ID 0 -
Correlli - 11.06.2009
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.