09.07.2010, 12:07
(
Последний раз редактировалось jorambo; 09.07.2010 в 12:18.
)
Hi guys.
I am busy with making a faction script, not like gteam but something else.
I have now this:
This is only for grove
So when you have 12 gangs or something you have 12 commands
It would be better when this is one command.
I was thinking something like /setleader (playerid) (grove/...)
Further I have these command
Maybe this could also be one command for more gangs?
1: I am sorry but i don't know how to put this nicely in such a dialog or something the script
2: I thought that this was good under scripting discussion if not, sorry.
I am busy with making a faction script, not like gteam but something else.
I have now this:
Код:
if(strcmp(cmd, "/groveleader", true)==0) { if(adminlevel[playerid] >=3) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xFF0000AA, "Gebruik: /groveleader [id]"); return 1; //Stopt het commando } giveplayerid = strval(tmp); if(!IsPlayerConnected(giveplayerid)) { SendClientMessage(playerid, 0xFF0000AA, "Speler is niet online"); return 1; } grove[giveplayerid] = 10; SendClientMessage(playerid, 0x00FF00AA, "Deze speler heeft nu grove level 10"); SendClientMessage(giveplayerid, 0xFF0000AA, "Je bent nu grove level 10"); } else { SendClientMessage(playerid,COLOR_RED,"Je mag dit niet doen"); } return 1; }
So when you have 12 gangs or something you have 12 commands
It would be better when this is one command.
I was thinking something like /setleader (playerid) (grove/...)
Further I have these command
Код:
if(strcmp(cmd,"/grovepromote", true) == 0) { if(grove[giveplayerid] >= 1) { new name [MAX_PLAYER_NAME]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /grovepromote [playerid]"); giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) if(grove[giveplayerid] >= 1) { { if(grove[playerid] >= 9) { grove[giveplayerid] += 1; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s heeft je gepromote naar een hoger grove level", name); SendClientMessage(giveplayerid,0xE3E3E3FF,string); format(string, sizeof(string), "je grove level is nu %d", grove); SendClientMessage(playerid,0xE3E3E3FF,string); GetPlayerName(giveplayerid, name, sizeof(name)); format(string, sizeof(string), "Je hebt %s gepromote tot een hoger grove level", name); SendClientMessage(playerid,0xE3E3E3FF,string); format(string, sizeof(string), "Hij is nu grove level %d", grove); SendClientMessage(playerid,0xE3E3E3FF,string); } else { SendClientMessage(playerid,0xE3E3E3FF,"Je mag dit niet doen"); } } } } return 1; } if(strcmp(cmd,"/grovedemote", true) == 0) { new name [MAX_PLAYER_NAME]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /grovedemote [playerid]"); giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) if(grove[giveplayerid] >= 1) { { if(grove[playerid] >= 9) { grove[giveplayerid] -= 1; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s heeft je gedemote naar een lager grove level", name); SendClientMessage(giveplayerid,0xE3E3E3FF,string); format(string, sizeof(string), "je grove level is nu %d", grove); SendClientMessage(playerid,0xE3E3E3FF,string); GetPlayerName(giveplayerid, name, sizeof(name)); format(string, sizeof(string), "Je hebt %s gedemote tot een lager grove level", name); SendClientMessage(playerid,0xE3E3E3FF,string); format(string, sizeof(string), "Hij is nu grove level %d", grove); SendClientMessage(playerid,0xE3E3E3FF,string); } else { SendClientMessage(playerid,0xE3E3E3FF,"Je mag dit niet doen"); } } } return 1; }
1: I am sorry but i don't know how to put this nicely in such a dialog or something the script
2: I thought that this was good under scripting discussion if not, sorry.