30.01.2011, 15:48
When not a staff rank, and I entire any of the commands it says the following!
You need to be a helper to use gotos command!
You need to be a helper to use agateo command!
You need to be a helper to use agatec command!
How do i fix the code, so it does not give you all three commands when you only enter gotos, because when I do gotos it says all three commands, should only say one!
You need to be a helper to use gotos command!
You need to be a helper to use agateo command!
You need to be a helper to use agatec command!
How do i fix the code, so it does not give you all three commands when you only enter gotos, because when I do gotos it says all three commands, should only say one!
Код:
if(AccountInfo[playerid][aLevel] <= 0) SendClientMessage(playerid, COLOR_RED, "You need to be a Helper to use gotos command!");
else
if(strcmp(cmdtext, "/gotos", true) == 0)
{
SetPlayerPos(playerid, -1470.45617676,2611.21215820,59.36460875);
SendClientMessage(playerid,red, "Welcome to Staff Base.");
return 1;
}
if(AccountInfo[playerid][aLevel] <= 0) SendClientMessage(playerid, COLOR_RED, "You need to be a Helper to use agateo command!");
else
if(strcmp(cmdtext, "/agateo", true)==0)
{
SendClientMessage(playerid, COLOR_RED, "You have opened the staff gate!");
MoveObject(agate, -1481.26208496,2660.61840820,48, 3);
return 1;
}
if(AccountInfo[playerid][aLevel] <= 0) SendClientMessage(playerid, COLOR_RED, "You need to be a Helper to use agatec command!");
else
if(strcmp(cmdtext, "/agatec", true)==0)
{
SendClientMessage(playerid, COLOR_RED, "You have closed the staff gate!");
MoveObject(agate, -1481.26208496,2660.61840820,56.58593750, 3);
return 1;
}

