12.01.2010, 18:01
Hello guys, how you doin'?
I'm here to ask you to analyse this command, 'cuz, no kidding, I've spent like 5/6 hours (not consecutive hours) trying to fix this command.
Take a look:
First I'll explain how it was supposed to work:
I'm not a Paramedic and call the Paramedics. If the player is a Paramedic and is Online, he will receive a message that I need one. There's a ZONE system that will tell automaticaly my Neighborhood.
Here's the issue:
As in a different team, I call the paramedics and I got the message I was supposed to see (You've called the paramedics. Wait here"). But, as I don't have anyone to test with me, I put the command for a BOT to do this for me. I did this in the BOT:
The /teste will show me a message, so I know the bot did the command properly, and the /paramedicos will (or at least was supposed to) show me the message "[QG]> NAME ask for paramedics. Spot: SPOT"
So, I get in the team Paramedic, and I receive the message that the BOT send to me, that's the "/teste" for, but I was supposed to see the "/paramedicos" answer, but I got nothing.
Someone understand? If not, please reply and I'll explain better.
No, the issue is not in the ZONES, 'cauze I've a /where command and it works properly.
Wait for answers and solutions.
Regards,
CaZeaJe'
I'm here to ask you to analyse this command, 'cuz, no kidding, I've spent like 5/6 hours (not consecutive hours) trying to fix this command.
Take a look:
pawn Код:
if(strcmp(cmdtext,"/paramedicos", true) == 0) {
if(gTeam[playerid] != TIME_PARAMEDICO) {
SendClientMessage(playerid, COR_ROXO, "> You've called the paramedics. Wait here.");
new cel = SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
SetTimerEx("LimparCel", 5000, false, "LimparCel", cel);
pediucura[playerid] = 1;
new current_zone;
current_zone = player_zone[playerid];
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(playerid))
if(gTeam[playerid] == TIME_PARAMEDICO) {
new solicitador[MAX_PLAYER_NAME];
new str[128];
GetPlayerName(playerid, solicitador, sizeof(solicitador));
SendClientMessage(playerid, COR_VERMELHO, "teste");
format(str, 128, "[QG]> %s ask for paramedics. Spot: %s", solicitador, zones[current_zone][zone_name]);
SendClientMessage(playerid, COR_PARAMEDICO, str);
return 1;
}
}
} else if(gTeam[playerid] == TIME_PARAMEDICO) {
SendClientMessage(playerid, COR_VERMELHO, "> Paramedics cannot use this command!");
return 1;
}
return 1;
}
I'm not a Paramedic and call the Paramedics. If the player is a Paramedic and is Online, he will receive a message that I need one. There's a ZONE system that will tell automaticaly my Neighborhood.
Here's the issue:
As in a different team, I call the paramedics and I got the message I was supposed to see (You've called the paramedics. Wait here"). But, as I don't have anyone to test with me, I put the command for a BOT to do this for me. I did this in the BOT:
pawn Код:
SendCommand("/teste");
SendCommand)/"paramedicos");
So, I get in the team Paramedic, and I receive the message that the BOT send to me, that's the "/teste" for, but I was supposed to see the "/paramedicos" answer, but I got nothing.
Someone understand? If not, please reply and I'll explain better.
No, the issue is not in the ZONES, 'cauze I've a /where command and it works properly.
Wait for answers and solutions.
Regards,
CaZeaJe'