Código:
if(!strcmp(cmdtext,"/colete",true))
{
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
GivePlayerWeapon(playerid,3,1);
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid,0xAFAFAFAA," Você Pegou Seu Colete !");
return 1;
}
if(!strcmp(cmdtext,"/capacete",true))
{
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
GivePlayerWeapon(playerid,3,1);
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid,0xAFAFAFAA," Você Pegou Seu Capacete");
return 1;
}
if(!strcmp(cmdtext,"/escudo",true))
{
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
GivePlayerWeapon(playerid,3,1);
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid,0xAFAFAFAA," Você Pegou Seu Escudo!");
return 1;
}
Código:
if(!strcmp(cmdtext,"/desequipar",true))
{
RemovePlayerAttachedObject(i,1);
RemovePlayerAttachedObject(i,2);
RemovePlayerAttachedObject(i,3);
RemovePlayerAttachedObject(i,4);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0xAFAFAFAA," Você Se Desequipou !");
return 1;
}
Você com Essas Funções Simples Pode Transforma-las em um Comando bom Para COP, ou Até Para GM, como o meu PAINTBALL Que Estou Fazendo.