[HELP] I need Help Over Here!!!!!!!!!!!! -
Ramiz - 14.03.2010
I need Help with Admin commands i downloaded a map and the scripting for it but the commands of it any one can use it and i want just admins to use it...
Like This Command Any one can use it
if (strcmp("/AHS", cmdtext, true, 10) == 0)
___________________________
And if i want to open gate any one can use it too i want just admins to use it. look at this...
if (strcmp("/bgateo", cmdtext, true, 10) == 0)
{
MoveObject(bgate,822.114258, -2147.841553, 3.148141,2);
}
Please I need help!!
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
bartje01 - 14.03.2010
rcon? Or do you have an admin script
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
Ramiz - 14.03.2010
I Dont Know i just need help to make these commands just admins to use it.
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
pierhs - 14.03.2010
pawn Код:
if (strcmp("/bgateo", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid)) return 1; MoveObject(bgate,822.114258, -2147.841553, 3.148141,2);
}
This command can only be used by rcon admin.If u have another admin system or filterscript, u need to make it yourself
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
MrIncredible - 14.03.2010
Код:
if (strcmp("/bgateo", cmdtext, true, 10) == 0)
{
if( IsPlayerAdmin(playerid) )
{
MoveObject(bgate,822.114258, -2147.841553, 3.148141,2);
}
else
{
SendClientMessage(playerid, WHITE, "SERVER:UNKNOWN COMMAND");
return 1;
}
}
now i am not sure if it will work ..
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
Ramiz - 14.03.2010
Thank you i will try it now
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
Ramiz - 14.03.2010
Quote:
Originally Posted by MrIncredible
Код:
if (strcmp("/bgateo", cmdtext, true, 10) == 0)
{
if( IsPlayerAdmin(playerid) )
{
MoveObject(bgate,822.114258, -2147.841553, 3.148141,2);
}
else
{
SendClientMessage(playerid, WHITE, "SERVER:UNKNOWN COMMAND");
return 1;
}
}
now i am not sure if it will work ..
|
But i have more that 1 gate command, like this
if (strcmp("/a_c_g_o", cmdtext, true, 10) == 0)
{
MoveObject(A_C_G,836.598999, -2065.735352, 9.090595,2);
}
if (strcmp("/a_c_g_c", cmdtext, true, 10) == 0)
{
MoveObject(A_C_G,836.598999, -2065.735352, 14.640579,2);
}
if (strcmp("/garageg1o", cmdtext, true, 10) == 0)
{
MoveObject(garageg1,855.465271, -2127.876709, 9.542675,2);
}
if (strcmp("/garageg1c", cmdtext, true, 10) == 0)
{
MoveObject(garageg1,855.465271, -2127.876709, 14.042607,2);
}
if (strcmp("/garageg2o", cmdtext, true, 10) == 0)
{
MoveObject(garageg2,855.465271, -2134.674561, 9.667632,2);
}
if (strcmp("/garageg2c", cmdtext, true, 10) == 0)
{
MoveObject(garageg2,855.465271, -2134.674561, 14.042607,2);
}
if (strcmp("/bgateo", cmdtext, true, 10) == 0)
{
MoveObject(bgate,822.114258, -2147.841553, 3.148141,2);
}
if (strcmp("/bgatec", cmdtext, true, 10) == 0)
{
MoveObject(bgate,822.114258, -2147.841553, 8.098146,2);
}
___________________________________
Can you give me the full script

please
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
MrIncredible - 14.03.2010
just do the same thing for the others .. i gave you an example .. now you do it .. its just copying and pasting ..
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
Ramiz - 14.03.2010
ok Thank you very much i will try now
Re: [HELP] I need Help Over Here!!!!!!!!!!!! -
Ramiz - 14.03.2010
o man there is 10 errors :/ look
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(135) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(147) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(155) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(159) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(171) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(179) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(179) : error 035: argument type mismatch (argument 5)
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(183) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(195) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(207) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(219) : error 017: undefined symbol "WHITE"
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI42.5906\a hs.pwn(242) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Errors.