does this works??
#1

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

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

i dont want unwanted comments, go away from samp noob
Reply
#4

What is this? whats the problem?
Reply
#5

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.
Reply
#6

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

sorry what
Reply
#8

No, it will not work.
Reply
#9

oh ok thanks
Reply
#10

Next time atleast test your code.
Good luck !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)