Need command offban - 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)
+--- Thread: Need command offban (
/showthread.php?tid=547121)
Need command offban -
ionutsx - 20.11.2014
hello ! i nedd a command /offban who banning a player who is offline. Please help me.
Re: Need command offban -
Glossy42O - 20.11.2014
Can you read? it's scripting help section.......
Make by yourself.
Re: Need command offban -
Jonesy96 - 20.11.2014
As the previous person said, at least try before coming here.
Here's the logic to help you out:
-User enters /offban [username]
-Using sscanf, you pull the value of username through
-You execute and SQL query searching for that username in your users table
-If user is found, execute SQL query to set their ban value to banned (true if boolean)
-Else SendClientMessage saying that no user exists with that username