17.01.2011, 12:04
(
Последний раз редактировалось Sa-mp scripter; 17.01.2011 в 13:38.
)
pawn Код:
new bool: capacete[MAX_PLAYERS];
pawn Код:
if (strcmp("/capacete", cmdtext, true, 10) == 0)
{
if (capacete[playerid] == false)
{
SetPlayerAttachedObject(playerid, 3, 18645, 2, 0.082900, 0.031548, -0.003276, 92.868537, 75.858642, 354.852478, 1.000000, 1.000000, 1.000000);
capacete[playerid] = true;
}
if (capacete[playerid] == true)
{
RemovePlayerAttachedObject(playerid, 3);
capacete[playerid] = false;
}
return 1;
}