04.07.2011, 14:09
hi i need help with this if i type /helmet i cant take off the helmet
i dont know how to do it plz help
i dont know how to do it plz help
if( !strcmp( cmd, "/helmet",true ) ) {
if( GetPVarInt( playerid, "Helmet" ) == 0 ) {
SetPlayerAttachedObject(playerid,3 , 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
SetPVarInt( playerid, "Helmet", 1 );
}
else {
RemovePlayerAttachedObject( playerid, 3 );
SetPVarInt( playerid, "Helmet", 0 );
}
return 1;
}