01.05.2010, 19:02
pawn Код:
if(strcmp(cmd, "/ulecz". true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2)
{
giveplayerid = ReturnUser(tmp);
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "*Uzdrowiłeś gracza %s.", giveplayerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Zostałeś uzdrowiony przez medyka %s.", playerid);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nie jesteś medykiem !");
}
}
return 1;
}
But then again, sa-mp forums are shit when it comes to indenting

