22.09.2012, 16:05
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;
}