SA-MP Forums Archive
help - 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: help (/showthread.php?tid=88912)



help - nuriel8833 - 29.07.2009

how can i do that if player text = IPort it will banned him?
tanks for helpers


Re: help - Correlli - 29.07.2009

Well, i searched and i found this:

http://forum.sa-mp.com/index.php?topic=96625.0
Quote:

Functions added in update 4:
* Block advertisement




Re: help - nuriel8833 - 29.07.2009

Quote:
Originally Posted by Don Correlli
Well, i searched and i found this:

http://forum.sa-mp.com/index.php?topic=96625.0
Quote:

Functions added in update 4:
* Block advertisement

Is this code gonna work?:

pawn Код:
new ipa
ipa =<0 | >999
new ipb
ipa =<0 | >999
new ipc
ipa =<0 | >999
new ipd
ipa =<0 | >999
new port
port =<0 | >100000
new text
if(text = ipa.ipb.ipc.ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa ipb ipc ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa.ipb.ipc.ipd : port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa. ipb. ipc. ipd : port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa .ipb .ipc .ipd : port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa. ip .ipc. ipd : port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa. ipb. ipc. ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa .ipb .ipc .ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa ipb ipc ipd : port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa ipb ipc ipd port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa/ipb/ipc/ipd/port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa/ipb/ipc/ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa/ipb/ipc/ipd port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa /ipb /ipc /ipd /port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa /ipb /ipc /ipd port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa /ipb /ipc /ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa-ipb-ipc-ipd-port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
else if(text = ipa-ipb-ipc-ipd:port){ SendClientMessage(playerid,color,"чйбмъд бап тм фшсен щшъйн"); return 0; }
GetPlayerIp(strval(ID),Ip,100);
format(str,256,"%d",Ip);
BanEx(strval(ID), str);
return 1;
}



Re: help - Correlli - 29.07.2009

Try to compile it and you'll get your answer.


Re: help - nuriel8833 - 29.07.2009

but sometimes you know it can have a problen like you know.
you can also say yes and no its much easier


Re: help - Correlli - 29.07.2009

Compile and test your code and you'll see if it works, that's the best way.


Re: help - nuriel8833 - 29.07.2009

Quote:
Originally Posted by Don Correlli
Compile and test your code and you'll see if it works, that's the best way.
no but isnt it supost to be like that:



Re: help - nuriel8833 - 29.07.2009

sorry i meant is it gonna work like this:
pawn Код:
new ipa
ipa =<0 | >999
new ipb
ipa =<0 | >999
new ipc
ipa =<0 | >999
new ipd
ipa =<0 | >999
new port
port =<0 | >100000
if (format(string, sizeof(string), "ipa.ipb.ipc.ipd:port");
SendClientMessage(playerid,COLOR_RED, "קיבלתה באן על פרסום שרתים")
TogglePlayerControllable(playerid, 1);
BanEx(playerid, str);
return 0;
}
I know its a diffrent languich (dont know how to spell it /=)but just tell me is it gonna work?

modify:
it makes me a lot of errors:
pawn Код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 4) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 6) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 8) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 10) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 11) : error 010: invalid function or declaration
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12) : error 010: invalid function or declaration
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : warning 203: symbol is never used: "SendClientMessage"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : warning 203: symbol is never used: "ipa"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : warning 203: symbol is never used: "ipb"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : warning 203: symbol is never used: "ipc"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : warning 203: symbol is never used: "ipd"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : warning 203: symbol is never used: "port"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\NoK-OuT DM+Wars+MiniGames.pwn(12 -- 17) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
how can i fix that


Re: help - Correlli - 29.07.2009

Quote:
Originally Posted by nuriel8833
it makes me a lot of errors:
Of course it does.

Quote:
Originally Posted by nuriel8833
how can i fix that
Learn basics?


Re: help - nuriel8833 - 29.07.2009

can you fix my code?