27.05.2012, 04:50
Criei um comando chamado set life
No windows usando a plugin sscanf2.dll funciona sem problema e no linux usando a plugin sscanf2.so nгo funciona vcs saberiam como ageitar isso?
PHP код:
CMD:setlife( playerid, params[] )
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й um admin.");
new gPid, ghealth;
if(sscanf(params, "ud", gPid, ghealth)) SendClientMessage(playerid, -1, "/setlife [playerid] [health]");
else if(gPid == INVALID_PLAYER_ID) SendClientMessage(playerid, -1, "Jogador nгo encontrado.");
else SetPlayerHealth(gPid, ghealth);
return true;
}

