21.07.2013, 12:15
Код:
CMD:setar( playerid, params[] ) { new givenid; if( sscanf(params, "d", givenid) ) return SendClientMessage( playerid, 0xff0000aa, "Modo de uso correto: /setar ID_DO_JOGADOR" ); SetPlayerTeam(givenid, -1); SetPlayerSkin(givenid, 165); SetPlayerHealth(givenid, 100); SetPlayerArmour(givenid, 0); SetPlayerColor(givenid, 0xFFFFFFFF); ResetPlayerWeapons(givenid); GivePlayerWeapon(givenid, 24, 500); GivePlayerWeapon(givenid, 25, 500); GivePlayerWeapon(givenid, 30, 500); GivePlayerWeapon(givenid, 34, 500); return SendClientMessage( playerid, 0x00ff00, "Informaзхes setadas com sucesso" ); }
Abraзos;