[Ajuda]Comandos nгo estгo funcionando
#1

esses sгo os FS e o GM
Код:
filterscripts gl_actions gl_realtime gl_mapicon ls_elevator registro dragdamorte drop drift info carro_louco baseaf
Код:
gamemode0 Gamemode
os comandos do server sгo /ban, /kick, /dragdamorte, /agua, /lchat, /status, /pm, /drop, /drift

os unicos que estгo funcionando sгo /dragdamorte e /status ajuda :S
Reply
#2

Poste os comandos aqui Psat.
Reply
#3

Drift
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

new stringa[MAX_PLAYERS];

if(strcmp(cmdtext, "/drift", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-364.7623,1532.6614,75.3594);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 00.0);
new pname[MAX_PLAYERS];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringa, sizeof(stringa), "%s Foi para a Cidade do Drift!! (/drift)", pname);
SendClientMessageToAll(COLOR_RED, stringa);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
}else{
SetPlayerPos(playerid,-364.7623,1532.6614,75.3594);
new pname[MAX_PLAYERS];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringa, sizeof(stringa), "%s Foi para a Cidade do Drift!! (/drift)", pname);
SendClientMessageToAll(COLOR_RED, stringa);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100.0);
SetVehicleHealth(playerid, 100.0);
}
return 1;
}
return 0;
}
Drop
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

new stringa[MAX_PLAYERS];

if(strcmp(cmdtext, "/drop", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,400.1834,2497.7429,1116.6544);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 00.0);
new pname[MAX_PLAYERS];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringa, sizeof(stringa), " %s Foi Para a Pista da drop(/drop)", pname);
SendClientMessageToAll(COR_DELETE, stringa);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
}else{
SetPlayerPos(playerid,400.1834,2497.7429,1116.6544);
new pname[MAX_PLAYERS];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringa, sizeof(stringa), " %s Foi Para o drop(/drop)", pname);
SendClientMessageToAll(COR_DELETE, stringa);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100.0);
SetVehicleHealth(playerid, 100.0);
}
return 1;
}
return 0;
}
PM
Код:
// PM Command
	if(strcmp("/pm", cmd, true) == 0)
	{
		tmp = strtok(cmdtext,idx);

		if(!strlen(tmp) || strlen(tmp) > 5) {
			SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Use: /pm (ID) (mensagem)");
			return 1;
		}

		new id = strval(tmp);
        gMessage = strrest(cmdtext,idx);

		if(!strlen(gMessage)) {
			SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Use: /pm (ID) (mensagem)");
			return 1;
		}

		if(!IsPlayerConnected(id)) {
			SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"/pm : esse ID jogador nгo estб conectado");
		}

		if(playerid != id) {
			GetPlayerName(id,iName,sizeof(iName));
			GetPlayerName(playerid,pName,sizeof(pName));
			format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);
			SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);
			format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);
			SendClientMessage(id,PM_INCOMING_COLOR,Message);
			PlayerPlaySound(id,1085,0.0,0.0,0.0);

			printf("PM: %s",Message);

		}
		else {
			SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Vocк nгo pode mandar PMs para vocк mesmo!");
		}
		return 1;
	}
Kick
Код:
//Kick Command
	if(strcmp("/kick", cmd, true) == 0)
	{
	    if(IsPlayerAdmin(playerid)) {
			tmp = strtok(cmdtext,idx);
			if(!strlen(tmp) || strlen(tmp) > 5) {
				return SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Use: /kick (id) [reason]");
			}

			new id = strval(tmp);
ban
Код:
//Ban Command
	if(strcmp("/ban", cmd, true) == 0)
	{
	    if(IsPlayerAdmin(playerid)) {
			tmp = strtok(cmdtext,idx);
			if(!strlen(tmp) || strlen(tmp) > 5) {
				return SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Use /ban [ID] [motivo]");
			}

			new id = strval(tmp);
ajuda
Код:
     if (strcmp("/ajuda", cmdtext, true)==0)
                {
                SendClientMessage(playerid, COR_ROXO, "->Tino's TDM Mode<-");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/regras : regras do servidor");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/creditos : para ver os creditos desse GM");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/dragdamorte : para ir ao drag");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/drop : para ir ao drop");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/kill : se mate ");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/flip : caso seu carro capote");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/duelo : para ir duelar em uma arena.");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}/objetivo : veja o objetivo desse gamemode");
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "{FFD800}Obrigado por jogar neste server.");
                return 1;
        }
agua
Код:
if (strcmp(cmdtext,"/agua", true)==0)
{
if(IsPlayerAdmin(playerid) == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1137.9557,-461.8962,-15.4766);
return 1;
}
teve uns comandos que eskeci de colocar no primeiro post e coloquei agr malz aew

casa queira mais alguma coisa me avise
Reply
#4

Verifique se a public OnPlayerCommandText do GM e dos FSs tem o return 0 no final.
Reply
#5

Os comandos voltaram mesmo assim vlw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)