18.10.2015, 15:13
Quote:
https://www.youtube.com/watch?v=4nAkcGDJbT0
PHP код:
|
pawn Код:
Streamer_ToggleAllItemUpdate(playerid, toggle)
{
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_OBJECT, toggle);
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_PICKUP, toggle);
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_MAP_ICON, toggle);
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_3D_TEXT_LABEL, toggle);
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_AREA, toggle);
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_CP, toggle);
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_RACE_CP, toggle);
return 1;
}
CMD:strue(playerid,params[]) //re-enables the item update
{
return Streamer_ToggleAllItemUpdate(playerid, true);
}
CMD:sfalse(playerid,params[]) //disables the item update
{
return Streamer_ToggleAllItemUpdate(playerid, false);
}