Jump to content

Question

Posted

Bun-Seara

am o problema la comanda "healall"

[pawn]

dcmd_healall(playerid,params[])

{

    #pragma unused params

if(AccInfo[playerid][Level] >= 3)

{

SendCommandToAdmins(playerid,"HealAll");

  for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])

{

PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerHealth(i,100.0);

}

}

new string[128];

format(string,sizeof(string),"|- Administrator \"%s\" has Healed all players -|", pName(playerid));

return SendClientMessageToAll(blue, string);

}

else return ErrorMessages(playerid, 6);

}

[/pawn]

Arata doar k Adminul cutare a dat viata tuturor.

Problema o intampin si la celalalte comenzi (spawnall,armourall,etc..)

M-am lasat de comunitatea sa-mp.ro

5 answers to this question

Recommended Posts

Posted

Pai daca tu ai [glow=red,2,300]ServerInfo[MaxAdminLevel][/glow],adica level maxim nu primesti viata .

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Posted

bag-o asa

[pawn]dcmd_healall ( playerid , params[ ] )

{

    #pragma unused params

if ( AccInfo[ playerid ][ Level ] >= 3)

{

SendCommandToAdmins(playerid,"HealAll");

  for ( new i = 0; i < MAX_PLAYERS; i++)

{

if( IsPlayerConnected ( i ) )

{

PlayerPlaySound (i,1057,0.0,0.0,0.0);

        SetPlayerHealth(i,100.0);

}

}

new gStr [ 100 ];

format ( gStr ,sizeof( gStr ),"|- Administrator \"%s\" has Healed all players -|", pName(playerid));

return SendClientMessageToAll ( blue, gStr );

}

else return ErrorMessages(playerid, 6);

}[/pawn]

la toate comenzile la care ai probleme in loc de

[pawn]if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])[/pawn]

pui

[pawn]if( IsPlayerConnected( i ) )[/pawn]

7bdea99b11.png

rimmon curv.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.