Admin On Duty - 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: Admin On Duty (
/showthread.php?tid=295650)
Admin On Duty -
[GTA]Leon[RPD] - 07.11.2011
I Need A Command Admin On Duty /
when admin type /duty He Gone on duty For LuxAdmin
Re: Admin On Duty -
hitman% - 07.11.2011
i think its there in lux admin... try /onduty
Re : Admin On Duty -
Alvin007 - 07.11.2011
Go to your GM , open it with pawno , CTRL+F then start searching little words like on , du..
Re: Admin On Duty -
=WoR=G4M3Ov3r - 07.11.2011
PHP код:
if(!strcmp(cmdtext, "/aduty", true))
{
if(!IsPlayerAdmin(playerid));
{
SetPlayerColor(playerid, 0xFFFF00AA) // Yellow colour hex
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
return 1;
}
Re: Admin On Duty -
[GTA]Leon[RPD] - 07.11.2011
Giving 3 error invalid declaration
Re: Admin On Duty -
[GTA]Leon[RPD] - 07.11.2011
Quote:
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6743) : error 010: invalid function or declaration
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6745) : error 010: invalid function or declaration
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp 03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6751) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
|
Same
Re: Admin On Duty -
[GTA]Leon[RPD] - 07.11.2011
Now 4 Errors
Код:
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6367) : error 010: invalid function or declaration
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6369) : error 010: invalid function or declaration
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6375) : error 010: invalid function or declaration
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\filterscripts\LuxAdmin.pwn(6376) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Admin On Duty -
[GTA]Leon[RPD] - 07.11.2011
On my last post lines added ?
Re: Admin On Duty -
mincer1667 - 07.11.2011
you need to put that under OnPlayerCommandText
Re: Admin On Duty - Sinc - 24.11.2011
Quote:
Originally Posted by =WoR=G4M3Ov3r
PHP код:
if(!strcmp(cmdtext, "/aduty", true))
{
if(!IsPlayerAdmin(playerid));
{
SetPlayerColor(playerid, 0xFFFF00AA) // Yellow colour hex
SetPlayerHealth(playerid, 9999999);
SetPlayerArmour(playerid, 9999999);
return 1;
}
|
You cannot end the if statement with a semicolon! The semicolon generally states the end of a function, the if statement requires a condition to be filled. Also, take a look at logical operators. It performs the inverse of a function.