#1

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

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

Reply
#3

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;
}
Reply
#4

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

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

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

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:
Reply
#8

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
Reply
#9

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?
Reply
#10

can you fix my code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)