21.12.2011, 06:46
tente:
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/capacete1", true))
{
SetPlayerAttachedObject(playerid, 1, 18936, 2, 0.105, 0.02, 0, 0, 0, 0);
}
if(strcmp(cmdtext, "/capacete2", true))
{
SetPlayerAttachedObject(playerid, 1, 18937, 2, 0.105, 0.02, 0, 0, 0, 0);
}
if(strcmp(cmdtext, "/capacete3", true))
{
SetPlayerAttachedObject(playerid, 1, 18938, 2, 0.105, 0.02, 0, 0, 0, 0);
}
return 1;
}