29.07.2009, 14:52
how can i do that if player text = IPort it will banned him?
tanks for helpers
tanks for helpers
Functions added in update 4: * Block advertisement |
Originally Posted by Don Correlli
Well, i searched and i found this:
http://forum.sa-mp.com/index.php?topic=96625.0 Quote:
|
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;
}
Originally Posted by Don Correlli
Compile and test your code and you'll see if it works, that's the best way.
|
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;
}
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
Originally Posted by nuriel8833
it makes me a lot of errors:
|
Originally Posted by nuriel8833
how can i fix that
|