SA-MP Forums Archive
[Ajuda] setar essas parada no player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] setar essas parada no player (/showthread.php?tid=452374)



setar essas parada no player - Paulaosamp - 21.07.2013

Bom to me batendo aqui para fazer um comando como esse : /setevento [id] ... eu fiz um mas o problema e que seta em min as coisas... e nгo na pessoa do ID .-.

Bom quem poder me ajudar tente codar um comando que sete no player de tal id :

pawn Код:
SetPlayerTeam(playerid, -1);
SetPlayerSkin(playerid, 165);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SetPlayerColor(playerid, 0xFFFFFFFF);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 30, 500);
GivePlayerWeapon(playerid, 34, 500);

Preferencia em CMD:


Obrigado


Re: setar essas parada no player - Leopawno - 21.07.2013

if(strcmp(cmdtext, "/setevento", true) == 0)
{
SetPlayerTeam(playerid, -1);
SetPlayerSkin(playerid, 165);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SetPlayerColor(playerid, 0xFFFFFFFF);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 30, 500);
GivePlayerWeapon(playerid, 34, 500);

}

no caso assim ?


Re: setar essas parada no player - Knight97 - 21.07.2013

ao usar
pawn Код:
playerid
estб a fazer as funзхes para o player que digitou o comando apenas.

Poste o comando do evento.


Re: setar essas parada no player - godkrad - 21.07.2013

Код:
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" );
}
Invйs de pedir cуdigos, que tal aprender? [ame]http://www.youtube.com/watch?v=Ngr4OiNaRnE[/ame]

Abraзos;