SA-MP Forums Archive
DM Cmds - 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: DM Cmds (/showthread.php?tid=529797)



DM Cmds - Spartaaaaa - 04.08.2014

Can anyone tell me how to close all commannds on race/dm
example: You are not in freeroam to use this command
Can anyone help me?



Re: DM Cmds - Spartaaaaa - 04.08.2014

bump


Re: DM Cmds - youssefehab500 - 04.08.2014

Quote:
Originally Posted by Spartaaaaa
Посмотреть сообщение
Can anyone tell me how to close all commannds on race/dm
example: You are not in freeroam to use this command
Can anyone help me?
PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
PlayerInfo[playerid][InDM] == true)
    {
        
SendClientMessage(playeridRED"{FF0000}[ERROR]: {FFFFFF}You Cant Use cmds while in DM use /leavedm to use cmds again");
    }
    return 
1;

here is an example rep+ if i helped
edit: wait a minute this if you are using zcmd if not tell me i show u other example


Re: DM Cmds - Spartaaaaa - 04.08.2014

Код:
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : error 017: undefined symbol "PlayerInfo"
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : warning 215: expression has no effect
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : error 001: expected token: ";", but found "]"
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : error 029: invalid expression, assumed zero
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: DM Cmds - youssefehab500 - 04.08.2014

Quote:
Originally Posted by Spartaaaaa
Посмотреть сообщение
Код:
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : error 017: undefined symbol "PlayerInfo"
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : warning 215: expression has no effect
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : error 001: expected token: ";", but found "]"
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : error 029: invalid expression, assumed zero
C:\Users\Khan_vb\Desktop\Server.UFS\UFS\gamemodes\XSE.pwn(9854) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
ik bro i told u its an example to start with or just give me ur dm defines and news and ill edit it to work with ur script


Re: DM Cmds - Spartaaaaa - 04.08.2014

You have skype?


Re: DM Cmds - youssefehab500 - 04.08.2014

Quote:
Originally Posted by Spartaaaaa
Посмотреть сообщение
You have skype?
youssefehab100 add me


Re: DM Cmds - Spartaaaaa - 04.08.2014

i sent u frnd reqst come skype


Re: DM Cmds - youssefehab500 - 04.08.2014

Quote:
Originally Posted by Spartaaaaa
Посмотреть сообщение
i sent u frnd reqst come skype
nope nth came :/ sure u typed the username right?


Re: DM Cmds - Spartaaaaa - 04.08.2014

my name ismail