SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/02/2018, 05:46 AM   #1
Jithu
Banned
 
Join Date: Jan 2018
Location: India
Posts: 81
Reputation: 3
Question does this works??

#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;
}
}
Jithu is offline   Reply With Quote
Old 24/02/2018, 05:49 AM   #2
jamesbond007
Gangsta
 
jamesbond007's Avatar
 
Join Date: Oct 2009
Location: Canadia
Posts: 849
Reputation: 50
Default Re: does this works??

People like you make me want to wish samp forums never existed
jamesbond007 is offline   Reply With Quote
Old 24/02/2018, 05:51 AM   #3
Jithu
Banned
 
Join Date: Jan 2018
Location: India
Posts: 81
Reputation: 3
Default Re: does this works??

i dont want unwanted comments, go away from samp noob
Jithu is offline   Reply With Quote
Old 24/02/2018, 06:02 AM   #4
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Los Santos, Idlewood
Posts: 2,336
Reputation: 157
Default Re: does this works??

What is this? whats the problem?
__________________
Check out this sh*t

N0FeaR is offline   Reply With Quote
Old 24/02/2018, 06:04 AM   #5
jamesbond007
Gangsta
 
jamesbond007's Avatar
 
Join Date: Oct 2009
Location: Canadia
Posts: 849
Reputation: 50
Default Re: does this works??

Quote:
Originally Posted by Jithu View Post
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.
jamesbond007 is offline   Reply With Quote
Old 24/02/2018, 06:06 AM   #6
Jithu
Banned
 
Join Date: Jan 2018
Location: India
Posts: 81
Reputation: 3
Default Re: does this works??

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.
Jithu is offline   Reply With Quote
Old 24/02/2018, 07:21 AM   #7
rfr
Banned
 
Join Date: Nov 2017
Posts: 278
Reputation: 43
Default Re: does this works??

sorry what
rfr is offline   Reply With Quote
Old 24/02/2018, 07:56 AM   #8
Kasis
Huge Clucker
 
Kasis's Avatar
 
Join Date: Mar 2010
Location: Weed, New Mexico
Posts: 485
Reputation: 72
Default Re: does this works??

No, it will not work.
Kasis is offline   Reply With Quote
Old 24/02/2018, 08:15 AM   #9
Jithu
Banned
 
Join Date: Jan 2018
Location: India
Posts: 81
Reputation: 3
Default Re: does this works??

oh ok thanks
Jithu is offline   Reply With Quote
Old 24/02/2018, 10:05 AM   #10
PepsiCola23
Gangsta
 
Join Date: May 2015
Posts: 681
Reputation: 3
Default Re: does this works??

Next time atleast test your code.
Good luck !
PepsiCola23 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MTABuilderPREX Works - My Works Ceedie Everything and Nothing 1 01/01/2016 04:20 AM
My Works ( Current Available Works ) SpikY_ Everything and Nothing 5 09/10/2015 10:42 PM
No works Mustafa6155 Scripting Help 2 24/11/2012 08:06 AM
Not works davve95 Scripting Help 4 14/10/2011 08:09 AM
My sa mp works only from 7 pm to 7 am Pinolo Client Support 10 23/08/2009 02:47 AM


All times are GMT. The time now is 07:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.