SA-MP Forums Archive
does this works?? - 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: does this works?? (/showthread.php?tid=650251)



does this works?? - Jithu - 24.02.2018

#include <sscanf>

enum AdminLevel
{
Level
}
new AdminInfo[MAX_PLAYERS][AdminLevel];



CMD:aod(playerid, params[])
{
if(AdminInfo[playerid][Level] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You dont have priviliges to use this command");
{
new aod, str[128];
if(sscanf(params, "ui", aod)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO)Now you are on duty");
format(str, sizeof(str), "{EFB509}(INFO)You are on duty", aod);
SendClientMessage(playerid, -1, str);

SetPlayerHealth(playerid, 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999);
SetPlayerColor(playerid, COLOR_GREEN);
return 1;
}
}

CMDaod(playerid, params[])
{
if(AdminInfo[playerid][Level] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You dont have priviliges to use this command");
{
new oaod, str[128];
if(sscanf(params, "ui", oaod)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO)Now you are on off duty");
SendClientMessage(playerid, -1, str);

SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}
}


Re: does this works?? - jamesbond007 - 24.02.2018

People like you make me want to wish samp forums never existed


Re: does this works?? - Jithu - 24.02.2018

i dont want unwanted comments, go away from samp noob


Re: does this works?? - N0FeaR - 24.02.2018

What is this? whats the problem?


Re: does this works?? - jamesbond007 - 24.02.2018

Quote:
Originally Posted by Jithu
Посмотреть сообщение
i dont want unwanted comments, go away from samp noob
why dont u try The code urself then? freaking lazy or what? What are you even trying to do? and use [ pawn] [/pawn] tags next time for your code.


Re: does this works?? - Jithu - 24.02.2018

i cannot play, im just replying at safe mode if i started playing in windows it will be hanged ,hanged hanged , im not lazy!You dumb cant you answer normally.


Re: does this works?? - rfr - 24.02.2018

sorry what


Re: does this works?? - Kasis - 24.02.2018

No, it will not work.


Re: does this works?? - Jithu - 24.02.2018

oh ok thanks


Re: does this works?? - PepsiCola23 - 24.02.2018

Next time atleast test your code.
Good luck !