[Ajuda] Ao morrer ficar com material 0
#8

Quote:
Originally Posted by Caio_Freeze
Посмотреть сообщение
se vc usa zcmd '-'

pawn Код:
CMD:darmats(playerid, params[])
{
    new targetid, amount, String[67];
    if(sscanf(params, "ui", targetid, amount)) return SendClientMessage(playerid, 0x32cd32ff, "CMD: /darmats <id/nome> <quantidade>");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xff0000ff, "(!) O jogador esta offline");

    format(String, sizeof String, "Vocк deu %d de materiais para %s", amount, Nome(targetid));
    SendClientMessage(playerid, 0x32cd32ff, String);
    PlayerInfo[playerid][pMats] = amount;
    return 1;
}
Eu tentei assim, compilou certo, mas n acontece nada qnd eu do /dar materiais 0 1000

pawn Код:
if(strcmp(cmd, "/dar materiais", true) == 0)
{
        new suspect = GetClosestPlayer(playerid);
        GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
    new targetid, amount, String[67];
//    if(sscanf(params, "ui", targetid, amount)) return SendClientMessage(playerid, 0x32cd32ff, "CMD: /darmats <id/nome> <quantidade>");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xff0000ff, "(!) O jogador esta offline");

    format(String, sizeof String, "Vocк deu %d de materiais para %s", amount, giveplayer);
    SendClientMessage(playerid, 0x32cd32ff, String);
    PlayerInfo[playerid][pMats] = amount;
    return 1;
}
Reply


Messages In This Thread
Ao morrer ficar com material 0 - by gmstrikker - 20.11.2013, 05:28
Re: Ao morrer ficar com material 0 - by shutt_down - 20.11.2013, 05:34
Re: Ao morrer ficar com material 0 - by gmstrikker - 20.11.2013, 08:47
Re: Ao morrer ficar com material 0 - by Caio_Freeze - 20.11.2013, 10:43
Re: Ao morrer ficar com material 0 - by Schocc - 20.11.2013, 13:38
Re: Ao morrer ficar com material 0 - by gmstrikker - 20.11.2013, 20:38
Re: Ao morrer ficar com material 0 - by caoraivoso3 - 20.11.2013, 20:39
Re: Ao morrer ficar com material 0 - by gmstrikker - 21.11.2013, 06:51

Forum Jump:


Users browsing this thread: 2 Guest(s)