HELPREQ - Commands
#4

Quote:
Originally Posted by mavtias
new string[128]; What does new string[128]; do?
if(!strcmp(cmdtext, "/report", true))
{
if(cmdtext[8] == 0)
{
SendClientMessage(playerid, GRAY, "Fill something in.");
}
new playername[26]; What does it do? (New Playername, and What does the '26' stand for?
GetPlayerName(playerid, playername, 26);
format(string, sizeof(string),"%s reported: %s", playername, cmdtext[8]);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][Admin] > 0) {
SendClientMessage(i, RED ,string); Is it only sent to RCON admins? I mean, No, I haven't done anything so no Admins system yet.
}
return 1;
}
Also the first two questions show us that you have no (or not much) clue about basics in pawn
So I recommend you to read a tutorial and they can be founded in wiki => Click
And if you dont know what you should click in the wiki, its "Scripting Basics"

To your third question about "SendClientMessage", you can find information about that function there, too
For that you just need to select "Scripting Functions" on the main page and then search for the function name

To your first post you said that you want an easy Admin system, for that you go again to wiki main page
And look to the right site where stands "Tutorials", there you can find "PAWN tutorial" and "Creating an Admin Script"
I suggest to read both, they will help you creating an admin system

If you have any other questions, use search, the wiki, pawn-lang.pdf, or the irc channel (#samp, #samp-scripting)
Reply


Messages In This Thread
HELPREQ - Commands - by Mike Garber - 27.05.2009, 11:54
Re: HELPREQ - Commands - by Think - 27.05.2009, 13:08
Re: HELPREQ - Commands - by Mike Garber - 27.05.2009, 13:44
Re: HELPREQ - Commands - by Nero_3D - 27.05.2009, 14:10
Re: HELPREQ - Commands - by Mike Garber - 27.05.2009, 16:31
Re: HELPREQ - Commands - by Nero_3D - 27.05.2009, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)