14.12.2015, 12:05
Hey guys im trying to make a small system, i have 2 classes ingame,
Cops and army,
You can get banned from the Cop class and the Army class.
It will update the samp.players database and set ArmyBanned or CopBanned to 1.
if its 1, it will prevent you from using the class, only other classes will be playable no leo.
I began to make a dialog, and i wanted to use that to Unban from the cop or armyclass.
Something like..
if a player types /unbanme
it will check if he is army or cop banned, if he is, it should use the DIALOG_STYLE_LIST
Cop Unban - 500k
Army Unban - 750k
If the player is not cop banned, or not army banned it should say nothing.
When the player clicks the text, another dialog should show up where the player accepts, the money gets withdrawn( player needs to have enough) and then update the row in the database.
Would this be doable?
Cops and army,
You can get banned from the Cop class and the Army class.
It will update the samp.players database and set ArmyBanned or CopBanned to 1.
if its 1, it will prevent you from using the class, only other classes will be playable no leo.
I began to make a dialog, and i wanted to use that to Unban from the cop or armyclass.
Something like..
if a player types /unbanme
it will check if he is army or cop banned, if he is, it should use the DIALOG_STYLE_LIST
Cop Unban - 500k
Army Unban - 750k
If the player is not cop banned, or not army banned it should say nothing.
When the player clicks the text, another dialog should show up where the player accepts, the money gets withdrawn( player needs to have enough) and then update the row in the database.
Would this be doable?