[Ajuda] Diminuir a vida do player!
#8

pawn Код:
if(!strcmp(cmd, "/amaterasu", true)) {
    tmp = strtok(cmdtext, idx);
    if(strlen(tmp) == 0) return SendClientMessage(playerid, -1, "USO: /amaterasu [ID/ParteDoNome]");
    new otherid = ReturnUser(tmp), Float: Life;

    if(otherid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Esse Player nao estб conectado");
    AttachObjectToPlayer(CreateObject(18688, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), otherid, 0.0, 0.0, -1.2, 0.0, 0.0, 0);
    GetPlayerHealth(otherid, Life);
    SetPlayerHealth(otherid, (Life - 10.0));
    return 1;
}
Assim ?
Reply


Messages In This Thread
Diminuir a vida do player! - by lucasfr1425 - 22.09.2012, 14:44
Re: Diminuir a vida do player! - by paulor - 22.09.2012, 14:48
Re: Diminuir a vida do player! - by lucasfr1425 - 22.09.2012, 14:59
Re: Diminuir a vida do player! - by humildadeforever - 22.09.2012, 15:08
Re: Diminuir a vida do player! - by lucasfr1425 - 22.09.2012, 15:13
Re: Diminuir a vida do player! - by paulor - 22.09.2012, 15:34
Re: Diminuir a vida do player! - by FeelLikeASir_ - 22.09.2012, 15:42
Re: Diminuir a vida do player! - by paulor - 22.09.2012, 16:05
Re: Diminuir a vida do player! - by StreetGT - 22.09.2012, 16:09
Re: Diminuir a vida do player! - by FeelLikeASir_ - 22.09.2012, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)