[Ajuda] /193
#5

Fis isso compilou serto mais na hora de receber a mensagem para quem й o mйdico mais nгo recebe a mensagem!


pawn Code:
new MedicoName [ 24 ];


if (strcmp(cmd, "/193", true)==0){
  new aname[MAX_PLAYER_NAME];
   GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    new tmp[256];
    strmid(tmp, cmdtext, 4, strlen(cmdtext));
    if(!strlen(tmp)) {
        SendClientMessage(playerid, Vermelho, "[ > ] Use: /193 [local]");
        return 1;
    }else{
        SendClientMessage(playerid, AzuL4, "[ INFO ] Os paramйdicos foram informados, aguarde uma resposta.");
        for(new i=0; i<MAX_PLAYERS; i++){
            GetPlayerName(i, MedicoName, MAX_PLAYER_NAME);
            if(dini_Int(file, "Profissao") == Mйdico){
                format(string, sizeof(string), "[ INFO ] %s (ID: %d) estб pedindo uma ambulвncia (Local: %s) Atenda-o o mais rapido possivel!", aname, playerid, tmp);
                SendClientMessage(i, amarelo, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
/193 - by powerths - 25.10.2013, 22:33
Re: /193 - by Juniiro3 - 25.10.2013, 22:42
Re: /193 - by powerths - 26.10.2013, 10:41
Re: /193 - by PT - 26.10.2013, 12:05
Re: /193 - by powerths - 26.10.2013, 12:18
Re: /193 - by PT - 26.10.2013, 12:55
Re: /193 - by powerths - 26.10.2013, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)