CMD:colete(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerAttachedObject( playerid, 1, 19142, 1, 0.117633, 0.028060, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 2)
{
SetPlayerAttachedObject( playerid, 2, 19142, 1, 0.036378, 0.048509, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 3)
{
SetPlayerAttachedObject( playerid, 3, 19142, 1, 0.083493, 0.041181, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
return 1;
}
/* -------- */
CMD:capacete(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerAttachedObject( playerid, 1, 19104, 2, 0.133160, 0.019420, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 2)
{
SetPlayerAttachedObject( playerid, 2, 19102, 2, 0.128419, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 3)
{
SetPlayerAttachedObject( playerid, 3, 19103, 2, 0.161174, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
return 1;
}
Rapaz, Jб fiz isso, acontece, que nгo adianta nada !
Quando fiz isso, eu usava /colete , aparecia, mais quando eu usava /capacete, o capacete aparecia e desaparecia bem rбpido. Joao Pedro : Se nгo quiser ajudar, Com todo Respeito vб procurar o que fazer. |
Ajuda eu quero e faзo com muito gosto, sу olhar meus posts. O que eu nгo quero e ver a board se poluindo com membros preguiзosos e ser hipуcrita nгo tentando fazer nada.
|
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2)
...f the player to attach the object to. index -> The index (slot) to assign the object to (0-9 since 0.3d, 0-4 in previous versions). modelid -> The m...
CMD:colete(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerAttachedObject( playerid, 1, 19142, 1, 0.117633, 0.028060, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 2)
{
SetPlayerAttachedObject( playerid, 1, 19142, 1, 0.036378, 0.048509, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 3)
{
SetPlayerAttachedObject( playerid, 1, 19142, 1, 0.083493, 0.041181, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
return 1;
}
/* -------- */
CMD:capacete(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerAttachedObject( playerid, 2, 19104, 2, 0.133160, 0.019420, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 2)
{
SetPlayerAttachedObject( playerid, 2, 19102, 2, 0.128419, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else if(GetPlayerTeam(playerid) == 3)
{
SetPlayerAttachedObject( playerid, 2, 19103, 2, 0.161174, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
return 1;
}